{ "id": "103620", "key": "TIMOB-11531", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14167", "description": "2012 Sprint 21 JS", "name": "2012 Sprint 21 JS", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-02T19:11:35.000+0000", "created": "2012-10-18T20:14:49.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-cli", "qe-ios100112", "qe-nfc" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-11-02T19:11:35.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": "10207", "name": "Tooling" } ], "description": "Details: If you install an app to an iOS device with either an iOS module or CommonJS module, then the app will not be able to find the module.\r\n\\\\ \\\\\r\n*Note:*\r\nYou *can* install an app to an Android device with either an Android module or CommonJS module\r\nThis bug does not appear in SDK build 2.1.3\r\n\\\\ \\\\\r\nSteps to reproduce:\r\n1. Download monkeyModule.zip attachment\r\n2. Unzip attachment and import project into TiStudio\r\n3. Make sure to add the ti.cloud module in tiapp.xml (TISTUD-2564)\r\n\\\\ \\\\\r\n-4. Install app to iOS device-\r\n-Actual: During installation of app, console will print out this error message:-\r\n{code}\r\n[ERROR] : \b\b \bTypeError: Cannot read property 'Build' of undefined\r\n at translate (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.v20121007054913/node_modules/node-appc/node_modules/i18n/i18n.js:226:23)\r\n at i18n.__ (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.v20121007054913/node_modules/node-appc/node_modules/i18n/i18n.js:85:13)\r\n at Object. (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.v20121007054913/cli/commands/build.js:17:17)\r\n at Module.Module._compile [as _compile] (module.js:449:26)\r\n at Object.Module._extensions..js [as .js] (module.js:467:10)\r\n at Module.Module.load [as load] (module.js:356:32)\r\n at Function.Module._load [as _load] (module.js:312:12)\r\n at Module.Module.require [as require] (module.js:362:17)\r\n at require (module.js:378:17)\r\n at loadCommand (/usr/local/lib/node_modules/titanium/lib/cli.js:863:13)\r\n{code}\r\n\\\\ \\\\\r\n4. Launch app on iOS device\r\nActual: iOS cannot find module (see no_module.png)\r\n\\\\ \\\\\r\nExpected: Should be able to install apps with modules\r\n\\\\ \\\\\r\n*Note:* To test with iOS module, in app.js, comment line 2 and uncomment line 3. Then repeat steps 4-5\r\n", "attachment": [ { "id": "32776", "filename": "latestGreatest.zip", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-18T23:18:36.000+0000", "size": 2905748, "mimeType": "application/zip" }, { "id": "32765", "filename": "monkeyModule.zip", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-18T20:14:49.000+0000", "size": 3707874, "mimeType": "application/zip" }, { "id": "32764", "filename": "no_module.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-18T20:14:49.000+0000", "size": 86377, "mimeType": "image/png" } ], "flagged": false, "summary": "CLI: iOS: Modules - Cannot install modules onto iOS", "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": "Titanium Studio, build: 3.0.0.201210172118\r\nSDK build: 3.0.0.v20121017182843, 3.0.0.v20121018140140\r\nDevcies: iphone 4 (4.3.5), iphone simulator (6.0)\r\nxcode: 4.5", "comment": { "comments": [ { "id": "224282", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "You're using an ancient version of the Titanium SDK. Please try again using the latest 3.0.X CI build.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-18T21:19:32.000+0000", "updated": "2012-10-18T21:19:32.000+0000" }, { "id": "224313", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tried with latest SDK build: 3.0.0.v20121018140140 and still got the same bug behavior.\r\n\\\\ \\\\\r\nAlso, current work around is following:\r\n1. Remove titanium package from /usr/local/lib/node_modules\r\n2. Open /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/TitaniumStudio.ini\r\n3. Add this flag: -Dtitanium.bypassNewCLI\r\n4. Restart TiStudio\r\n5. Do not try to install latest Titanium CLI \r\n6. Install app to device", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-18T21:48:47.000+0000", "updated": "2012-10-18T21:52:03.000+0000" }, { "id": "224317", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Please update the error message. It's IMPOSSIBLE that the error is occurring on line 17 of /Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.v20121007054913/cli/commands/build.js because line 17 is a comment. What is the error?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-18T21:52:32.000+0000", "updated": "2012-10-18T21:52:32.000+0000" }, { "id": "224364", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Uploading new titanium project", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-18T23:18:36.000+0000", "updated": "2012-10-18T23:18:36.000+0000" }, { "id": "224368", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3294\n3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3295", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-18T23:41:44.000+0000", "updated": "2012-10-18T23:41:44.000+0000" }, { "id": "224388", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening bug. I can install app with iOS module (latestGreatest.zip). But, I still can't install app with CommonJS module (monkeyModule.zip).\n\\\\ \\\\\nTo reproduce the CommonJS module bug, follow above bug steps with monkeyModule.zip.\n\\\\ \\\\\nTested with:\nSDK build: 3.0.0.v20121018170119\nDevice: iphone 4 (4.3.5)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T01:45:37.000+0000", "updated": "2012-10-19T01:45:37.000+0000" }, { "id": "224458", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I looked into the commonjs stuff and it works just fine. Please test again.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-19T15:47:15.000+0000", "updated": "2012-10-19T15:47:15.000+0000" }, { "id": "224472", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also note: the stack trace listed above references a node module called i18n, but we removed that module some time ago. Can you please do a clean install of the CLI (i.e. remove the old directory)? I wonder if there's some old code causing this behavior and updating will fix it by itself.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T17:10:59.000+0000", "updated": "2012-10-19T17:12:00.000+0000" }, { "id": "224473", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "After doing some digging, that stack trace is definitely not valid anymore. Line 17 of build is just a comment.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T17:13:47.000+0000", "updated": "2012-10-19T17:13:47.000+0000" }, { "id": "224477", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Sorry, the above bug behavior is a little outdated. Will update the repo steps.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T17:24:59.000+0000", "updated": "2012-10-19T17:24:59.000+0000" }, { "id": "224485", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Could not reproduce, bhughes and I are talking with QE and see if they can reproduce with the latest build.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T17:53:29.000+0000", "updated": "2012-10-19T17:53:29.000+0000" }, { "id": "224490", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified occurring with:\nCLI: 3.0.7\nTitanium Studio, build: 3.0.0.201210182149\nSDK: 3.0.0.v20121019103112\n\nDelivered build folder to dev as requested.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T18:20:47.000+0000", "updated": "2012-10-19T18:20:47.000+0000" }, { "id": "224537", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3305\n3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3306", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-19T22:32:22.000+0000", "updated": "2012-10-19T22:32:22.000+0000" }, { "id": "224546", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with SDK: 3.0.0.v20121019153308\r\niPhone 4 4.3.5", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-20T00:06:15.000+0000", "updated": "2012-10-20T00:06:15.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }