{ "id": "110336", "key": "TIMOB-12895", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15280", "description": "2013 Sprint 06 JS", "name": "2013 Sprint 06 JS", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "14816", "description": "2013 Sprint 06", "name": "2013 Sprint 06", "archived": true, "released": true, "releaseDate": "2013-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-11T19:17:12.000+0000", "created": "2013-02-27T19:17:29.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "alloy", "module", "module_module", "problem", "qe-testadded", "regression", "sdk", "titanium" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [ { "id": "26686", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "108322", "key": "TIMOB-12359", "fields": { "summary": "iOS: build fails if using modules", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-10-06T19:42:14.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": "h1. Issue seen in Alloy:\r\nWhen using the SDK 3.0.2 the app can´t load any native modules. It shows the message: \"Couldn't find module: xxxxxx\". The module is in the modules folder inside the app folder. If we simply change the SDK version in the tiapp.xml to 3.0.0 it works flawlessly. I notice that the 3.0.0 SDK shows the message \"Detected third-party native iOS module: xxxxx version x.x.x\" in the build time but the 3.0.2 doesn't.\r\n\r\n*Steps to reproduce:*\r\n\r\n1 - Create a new Titanium Alloy Project using SDK 3.0.2;\r\n2 - Install a module (past it in the folder app/modules or use the assistant in the menu Titanium Studio -> Install module);\r\n3 - Add the module to the tiapp.xml;\r\n4 - Require the module in alloy.js using the require statement;\r\n\r\n*Expected result:*\r\n\r\nThe module is loaded without problems.\r\n\r\n*Actual result:*\r\n\r\nThe module fails to load and the massage \"Couldn't find module: xxxxxx\" is shown.\r\n\r\n\r\nh1. Issue seen in Titanium Mobile:\r\nWhen using the SDK 3.0.2 the app can´t load any native modules. It shows the message: \"Couldn't find module: xxxxxx\". The module is in the modules folder inside the app folder. If we simply change the SDK version in the tiapp.xml to 3.0.0 it works flawlessly. I notice that the 3.0.0 SDK shows the message \"Detected third-party native iOS module: xxxxx version x.x.x\" in the build time but the 3.0.2 doesn't.\r\n\r\n*Steps to reproduce:*\r\n\r\n1 - Create a new Titanium Classic Project using SDK 3.0.2 (not 3.0.0);\r\n2 - Install the ti.storekit module (past it in the folder app/modules or use the assistant in the menu Titanium Studio -> Install module);\r\n3 - Add the module to the tiapp.xml. Paste:\r\n<\r\n{code}\r\nmodules>\r\nti.storekit\r\n\r\n{code}\r\n4 - Require the module in app.js using the require statement like the code bellow:\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'white' });\r\n\r\nvar label = Ti.UI.createLabel({});\r\n\r\nwin.add(label);\r\n\r\nwin.open();\r\n\r\nlabel.setText(\"Attempting to require module...\");\r\n\r\n//The error happens here when using SDK 3.0.2 GA\r\n//If we change the SDK version to 3.0.0 it works without problems\r\nvar Storekit = require('ti.storekit');\r\n\r\nlabel.setText(\"Success!\");\r\n\r\n{code}\r\n\r\n*Expected result:*\r\n\r\nThe module is loaded without problems.\r\n\r\n*Actual result:*\r\n\r\nThe module fails to load and the massage \"Couldn't find module: xxxxxx\" is shown.\r\n\r\nObs: If we change the SDK to 3.0.0 it works without problem. The problem ocur only in SDk 3.0.2\r\n\r\nh2. Note: Regression\r\nIn 3.0.0GA if platform is not specified, for example:\r\n\r\n{code}\r\nmodules>\r\nti.storekit\r\n\r\n{code}\r\n\r\nthen the module will load without issue. But the same code will break and result in script error if tried in 3.0.2GA.\r\n\r\nIn 3.0.2GA, the platform must be specified:\r\n\r\n{code}\r\nmodules>\r\nti.storekit\r\n\r\n{code}\r\n\r\nor a script error will occur. \r\n\r\n", "attachment": [ { "id": "47020", "filename": "Trace Logs.txt", "author": { "name": "schowbey", "key": "schowbey", "displayName": "Shreya Chowbey", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-02T11:32:22.000+0000", "size": 267388, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: Unable to load any native module with SDK 3.0.2", "creator": { "name": "pedh7", "key": "pedh7", "displayName": "Pedro Henrique Atanásio e Silva", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating system: OS X 10.8\r\nTitanium Studio, build 3.0.201302\r\nTitanium SDK, build 3.0.2 GA\r\nAlloy 1.0.0\r\nDevices: iOS Simulator, iPhone 5 iOS 6.1", "comment": { "comments": [ { "id": "240145", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "related link from Q&A: http://developer.appcelerator.com/question/148693/problems-with-storekit-and-sdk-302", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T14:49:49.000+0000", "updated": "2013-02-28T14:49:49.000+0000" }, { "id": "240147", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Carter, the referenced Q&A question states that this is specifically NOT an Alloy app he is working on. Can you move this to TIMOB please?", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T15:03:48.000+0000", "updated": "2013-02-28T15:03:48.000+0000" }, { "id": "240149", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tony, one of the customers experienced the same problem in Alloy, that's why I posted here. Do you think the root cause is in Ti-Mob though? I'll create a new ticket for that platform and resolve this one for now.", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T15:12:43.000+0000", "updated": "2013-02-28T15:12:43.000+0000" }, { "id": "240157", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tony, for some reason I do not have permissions to close or resolve tickets in Alloy. If you can, would you mind resolving for now until we can confirm the issue is with Ti-Mob? I am almost done creating the new ticket for them. Thank you.", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T15:27:22.000+0000", "updated": "2013-02-28T15:27:22.000+0000" }, { "id": "240166", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If any developer has the same issue in a non-Alloy app, then by definition it is not an Alloy-specific problem. That's not to say problems can't exist with native modules in Alloy, but this does not appear to be specific to Alloy.\n\nWhy don't you just move the ticket? Just go to \"More Actions -> Move\". That would be MUCH easier and it would encapsulate all discussion to this point which would be lost if you create a new ticket.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T16:17:48.000+0000", "updated": "2013-02-28T16:17:48.000+0000" }, { "id": "240167", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm going to assign to ingo and move it to TIMOB. A new ticket is not necessary.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T16:18:15.000+0000", "updated": "2013-02-28T16:18:15.000+0000" }, { "id": "240176", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This seems to be a regression. In 3.0.0GA users are allowed to declare the modules tag without a platform specified. But in 3.0.2GA, if the platform is not specified, the app gives the script error: [ERROR] : \b\b \bScript Error = Couldn't find module: ti.storekit.", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T17:27:02.000+0000", "updated": "2013-02-28T17:27:02.000+0000" }, { "id": "240190", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "related QA post: http://developer.appcelerator.com/question/148693/problems-with-storekit-and-sdk-302#comment-160952", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T17:40:08.000+0000", "updated": "2013-02-28T17:40:08.000+0000" }, { "id": "243192", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I can't reproduce it. I tested this with two different modules and it worked. I believe the cause was they were using an old version of node-appc.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-03-20T17:23:23.000+0000", "updated": "2013-03-20T17:23:23.000+0000" }, { "id": "243203", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "@Carter, good point. Reopened and fixed it quick.\n\nnode-appc master pull request: https://github.com/appcelerator/node-appc/pull/39", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-03-20T17:52:53.000+0000", "updated": "2013-03-20T17:52:53.000+0000" }, { "id": "243204", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Chris, Cool so what is the final word on the fix? Have the platform declared always? Thanks for the fix.", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-20T17:58:41.000+0000", "updated": "2013-03-20T17:58:41.000+0000" }, { "id": "243206", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "@Canter, after the fix, platforms are again optional. :)\n\nThe cause was a regression introduced back in Jan/Feb timeframe.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-03-20T18:03:25.000+0000", "updated": "2013-03-20T18:03:25.000+0000" }, { "id": "261976", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "updated label \r\nClosing as fixed.\r\nVerified with:\r\n\r\nTitanium Studio:3.1.2.201307091843\r\nTitanium SDK: 3.1.2.v20130710144553\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.2.14\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1\r\nOS: OSX 10.8\r\nDevice:iPhone Simulator(v6.0) iphone(v5.1)\r\nXcode: 4.5.1\r\n\r\nAble to load native module.\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-16T06:53:19.000+0000", "updated": "2013-07-16T06:53:19.000+0000" }, { "id": "294766", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-26T09:53:09.000+0000", "updated": "2014-02-26T09:53:09.000+0000" }, { "id": "299448", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I just tested this and it works as expected.\n\n[~pagarwal] I don't believe your issue is related to this ticket. You probably just need to clean your project and build again. Also, please include the TRACE log output in the future.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-01T00:05:36.000+0000", "updated": "2014-04-01T00:05:36.000+0000" }, { "id": "299606", "author": { "name": "schowbey", "key": "schowbey", "displayName": "Shreya Chowbey", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am still facing this issue for the below given environment,\r\n\r\nMavericks 10.9.2\r\nXcode: 5.1\r\nDevice: iPod Touch 3 version 7.1\r\nAppcelerator Studio build: 3.2.3.201403271839\r\nSDK: 3.2.3.v20140401134117\r\nNode-ACS: 1.0.14\r\nAlloy: 1.3.1 GA\r\nCLI: 3.2.3-alpha2\r\nCode processor: 1.1.1-alpha\r\n\r\nAs per the comment mentioned by Chris Barber I am attaching 'Trace log' file for further reference.", "updateAuthor": { "name": "schowbey", "key": "schowbey", "displayName": "Shreya Chowbey", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-02T11:31:56.000+0000", "updated": "2014-04-02T11:38:12.000+0000" }, { "id": "300698", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~schowbey] Yeah, Titanium is working as expected.\n\nThe problem is you are using ti.storekit 2.0.2 which is too old. That version does not work with Titanium SDK >=3.2. You need to upgrade to 3.0.0 and you'll see that it works. You can get it from here: https://github.com/appcelerator-modules/ti.storekit/raw/stable/ios/ti.storekit-iphone-3.0.0.zip.\n\nI'm resolving this as fixed again. Feel free to reopen if ti.storekit 3.0.0 does not work.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-11T19:17:06.000+0000", "updated": "2014-04-11T19:17:06.000+0000" }, { "id": "327054", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested using ti.storekit 3.0.0 \r\nMac osx 10.9.5 Mavericks\r\nAppcelerator Studio, build: 3.4.0.201409261245\r\nTitanium SDK, build: 3.4.1.v20141003114920\r\nacs@1.0.18\r\nalloy 1.5.1\r\ninstall@0.1.7\r\nnpm@1.4.23\r\nsudo@1.0.3\r\ntitanium 3.4.0\r\ntitanium-code-processor@1.1.1\r\nXcode6.1GM\r\nDevices:\r\niPad mini iOS 7.0.3\r\niPhone 6 iOS iOS 8.1\r\nSDK 3.1.3.GA\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-06T19:42:05.000+0000", "updated": "2014-10-06T19:42:05.000+0000" } ], "maxResults": 19, "total": 19, "startAt": 0 } } }