Project: titanium
Issue TIMOB-19326: Cannot install/build to iOS device or simulator
*Details:* Cannot install/build to iOS device or simulator. *Note:* * This is a regression from SDK build 4.2.0.v20150729122818 i.e. was working on July 29 * I am able to install to Android device or emulator without any issues * This occurs with both Appc CLI and Titanium CLI *Steps to reproduce:* # Create a Titanium project: {{appc new}} or {{ti create}} # Run following command to install to device or simulator: {{appc run -p ios -T }} OR {{ti build -p ios -T }} # Finish prompt to get app onto device or simulator *Actual:* If you install app to device or simulator from Appc CLI, the build will stop midway; see appc_cli_log.txt If you install app to device or simulator from Ti CLI, you get the following error: {code} [ERROR] Failed to run command "build" [ERROR] ReferenceError: cli is not defined at iOSBuilder.createXcodeProject (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806155225/iphone/cli/commands/_build.js:2857:13) at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806155225/node_modules/node-appc/node_modules/async/lib/async.js:607:21 at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806155225/node_modules/node-appc/node_modules/async/lib/async.js:246:17 at iterate (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806155225/node_modules/node-appc/node_modules/async/lib/async.js:146:13) at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806155225/node_modules/node-appc/node_modules/async/lib/async.js:157:25 at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806155225/node_modules/node-appc/node_modules/async/lib/async.js:248:21 at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806155225/node_modules/node-appc/node_modules/async/lib/async.js:612:34 at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806155225/node_modules/node-appc/lib/async.js:64:51 at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806155225/node_modules/node-appc/node_modules/async/lib/async.js:607:21 at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806155225/node_modules/node-appc/node_modules/async/lib/async.js:246:17 --------------------------------------------- at exports.execFile (child_process.js:712:9) at exports.exec (child_process.js:591:18) at /usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/environ.js:267:3 at /usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/async/lib/async.js:251:17 at /usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/async/lib/async.js:154:25 at /usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/async/lib/async.js:248:21 at /usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/async/lib/async.js:612:34 at /usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/environ.js:234:7 {code} *Expected:* Should be able to install app to iOS device or simulator.
Story points: 2