{ "id": "110376", "key": "AC-2419", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-02-28T17:48:20.000+0000", "created": "2013-02-28T17:04:03.000+0000", "labels": [ "module", "problem", "titanium" ], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:27.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." }, { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "description": "When 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\nSteps 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 ti.storekit\r\n \r\n4 - Require the module in app.js using the require statement like the code bellow:\r\n\r\n////////////////////app.js/////////////////////////\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\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\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/////////////////////////////////////////////\r\n\r\nExpected result:\r\n\r\nThe module is loaded without problems.\r\n\r\nActual 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", "attachment": [ { "id": "35808", "filename": "app.js", "author": { "name": "pedh7", "key": "pedh7", "displayName": "Pedro Henrique Atanásio e Silva", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T17:04:03.000+0000", "size": 364, "mimeType": "text/javascript" }, { "id": "35809", "filename": "downloads_794_ti.storekit-iphone-1.6.2.zip", "author": { "name": "pedh7", "key": "pedh7", "displayName": "Pedro Henrique Atanásio e Silva", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T17:04:03.000+0000", "size": 345028, "mimeType": "application/zip" }, { "id": "35807", "filename": "tiapp.xml", "author": { "name": "pedh7", "key": "pedh7", "displayName": "Pedro Henrique Atanásio e Silva", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T17:04:03.000+0000", "size": 1896, "mimeType": "text/xml" } ], "flagged": false, "summary": "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": "pedh7", "key": "pedh7", "displayName": "Pedro Henrique Atanásio e Silva", "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": "240198", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T17:48:20.000+0000", "updated": "2013-02-28T17:48:20.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }