{ "id": "150234", "key": "TIMOB-19326", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-08-07T18:20:10.000+0000", "created": "2015-08-07T00:16:05.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2015-08-07T19:48:56.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Details:* Cannot install/build to iOS device or simulator.\r\n\r\n*Note:*\r\n* This is a regression from SDK build 4.2.0.v20150729122818 i.e. was working on July 29\r\n* I am able to install to Android device or emulator without any issues\r\n* This occurs with both Appc CLI and Titanium CLI\r\n\r\n*Steps to reproduce:*\r\n# Create a Titanium project: {{appc new}} or {{ti create}}\r\n# Run following command to install to device or simulator: {{appc run -p ios -T }} OR {{ti build -p ios -T }}\r\n# Finish prompt to get app onto device or simulator\r\n\r\n*Actual:* If you install app to device or simulator from Appc CLI, the build will stop midway; see appc_cli_log.txt\r\n\r\nIf you install app to device or simulator from Ti CLI, you get the following error:\r\n{code}\r\n[ERROR] Failed to run command \"build\"\r\n[ERROR] ReferenceError: cli is not defined\r\n at iOSBuilder.createXcodeProject (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806155225/iphone/cli/commands/_build.js:2857:13)\r\n 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\r\n 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\r\n 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)\r\n 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\r\n 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\r\n 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\r\n at /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806155225/node_modules/node-appc/lib/async.js:64:51\r\n 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\r\n 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\r\n---------------------------------------------\r\n at exports.execFile (child_process.js:712:9)\r\n at exports.exec (child_process.js:591:18)\r\n at /usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/environ.js:267:3\r\n at /usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/async/lib/async.js:251:17\r\n at /usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/async/lib/async.js:154:25\r\n at /usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/async/lib/async.js:248:21\r\n at /usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/async/lib/async.js:612:34\r\n at /usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/environ.js:234:7\r\n{code}\r\n\r\n*Expected:* Should be able to install app to iOS device or simulator.\r\n\r\n", "attachment": [ { "id": "56356", "filename": "appc_cli_log.txt", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-07T00:15:11.000+0000", "size": 29235, "mimeType": "text/plain" } ], "flagged": false, "summary": "Cannot install/build to iOS device or simulator", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Ti CLI: 4.1.4\r\nAppc CLI NPM: 4.2.0-1\r\nAppc CLI Core: 4.2.0-7\r\nArrow: 1.2.6\r\nSDK: 4.2.0.v20150806155225, 4.2.0.v20150806201222\r\nNode: v0.10.38\r\nOS: Yosemite (10.10.4)\r\nXcode: 6.4\r\nDevice: iphone 6 plus (8.3), iOS Simulator", "closedSprints": [ { "id": 465, "state": "closed", "name": "2015 Sprint 16 Tooling", "startDate": "2015-08-03T16:11:05.714Z", "endDate": "2015-08-15T01:11:00.000Z", "completeDate": "2015-08-18T00:59:18.251Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "359264", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Fixed a regression in TIMOB-19311 that fixes this.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-08-07T03:22:00.000+0000", "updated": "2015-08-07T03:22:00.000+0000" }, { "id": "359325", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening ticket. With latest master SDK build 4.2.0.v20150806201222, I get the following error when I try to build for iOS device or simulator:\r\n{code}\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:195\r\n throw e;\r\n ^\r\nError: Cannot find module '/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806201222/node_modules/ioslib/node_modules/sqlite3/lib/binding/node-v11-darwin-x64/node_sqlite3.node'\r\n at Module._resolveFilename (module.js:338:15)\r\n at Module._load (module.js:280:25)\r\n at Module.require (module.js:364:17)\r\n at require (module.js:380:17)\r\n at Object. (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/4.2.0.v20150806201222/node_modules/ioslib/node_modules/sqlite3/lib/sqlite3.js:4:15)\r\n at Module._compile (module.js:456:26)\r\n at Module._extensions..js (module.js:474:10)\r\n at Module.load (module.js:356:32)\r\n at Module._load (module.js:312:12)\r\n at Module.require (module.js:364:17)\r\n---------------------------------------------\r\n at Object.run (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at find (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:96:14)\r\n at q.process (/usr/local/lib/node_modules/titanium/node_modules/node-appc/node_modules/async/lib/async.js:806:21)\r\n at processImmediate (timers.js:354:15)\r\n{code}", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-07T17:54:58.000+0000", "updated": "2015-08-07T17:54:58.000+0000" }, { "id": "359326", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~wluu] Ugh. I introduced sqlite to get at the Xcode teams, but the sqlite module ran into the same problem as us with node-ios-device. If you install Node.js 0.12, it'll work. I'll try to build it with 0.10 and get a fix asap.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-08-07T18:00:37.000+0000", "updated": "2015-08-07T18:00:37.000+0000" }, { "id": "359327", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Fixed by PR https://github.com/appcelerator/titanium_mobile/pull/7013", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-08-07T18:19:27.000+0000", "updated": "2015-08-07T18:19:27.000+0000" }, { "id": "359337", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified I was able to build and install a Ttianium app to an iOS device and simulator.\r\n\r\nTested on:\r\n\r\nAppc CLI NPM: 4.2.0-1\r\nAppc CLI Core: 4.2.0-18\r\nArrow: 1.2.13\r\nSDK: 4.2.0.v20150807112024\r\nNode: v0.10.38\r\nOS: Yosemite (10.10.4)\r\nXcode: 6.4, 7 (beta 5)\r\nDevices: iphone 6 plus (8.3), iphone 6 plus (9.0 13A4325c), iphone 6 simulator (8.4), iphone 6 simulator (9.0)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-07T19:48:47.000+0000", "updated": "2015-08-07T19:48:47.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }