GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-02-28T17:48:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Appcelerator Modules, Studio |
Labels | module, problem, titanium |
Reporter | Pedro Henrique Atanásio e Silva |
Assignee | Tony Lukasavage |
Created | 2013-02-28T17:04:03.000+0000 |
Updated | 2016-03-08T07:41:27.000+0000 |
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.
Steps to reproduce:
1 - Create a new Titanium Classic Project using SDK 3.0.2 (not 3.0.0);
2 - Install the ti.storekit module (past it in the folder app/modules or use the assistant in the menu Titanium Studio -> Install module);
3 - Add the module to the tiapp.xml. Paste:
ti.storekit
4 - Require the module in app.js using the require statement like the code bellow:
////////////////////app.js/////////////////////////
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var label = Ti.UI.createLabel({});
win.add(label);
win.open();
label.setText("Attempting to require module...");
//The error happens here when using SDK 3.0.2 GA
//If we change the SDK version to 3.0.0 it works without problems
var Storekit = require('ti.storekit');
label.setText("Success!");
/////////////////////////////////////////////
Expected result:
The module is loaded without problems.
Actual result:
The module fails to load and the massage "Couldn't find module: xxxxxx" is shown.
Obs: If we change the SDK to 3.0.0 it works without problem. The problem ocur only in SDk 3.0.2