Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2419] Unable to load any native module with SDK 3.0.2

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2013-02-28T17:48:20.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Appcelerator Modules, Studio
Labelsmodule, problem, titanium
ReporterPedro Henrique Atanásio e Silva
AssigneeTony Lukasavage
Created2013-02-28T17:04:03.000+0000
Updated2016-03-08T07:41:27.000+0000

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. 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

Attachments

FileDateSize
app.js2013-02-28T17:04:03.000+0000364
downloads_794_ti.storekit-iphone-1.6.2.zip2013-02-28T17:04:03.000+0000345028
tiapp.xml2013-02-28T17:04:03.000+00001896

Comments

  1. Carter Lathrop 2013-02-28

JSON Source