[AC-2007] iOS: Ti Modules used only in /iphone are not included in build for iOS devices on Ti SDK 2.1.4
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-04-02T23:59:16.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | regression |
Reporter | Hannes Becker |
Assignee | Mauro Parra-Miranda |
Created | 2012-11-16T15:34:12.000+0000 |
Updated | 2016-03-08T07:40:57.000+0000 |
Description
1. Create new project for iOS
2. Edit app.js with something like this:
// app.js
var AppStartWindow = require('/AppStartWindow');
new AppStartWindow().open();
3. Create AppStartWindow.js in /Resources/iphone/
function AppStartWindow(){
return Ti.UI.createWindow();
}
module.exports = AppStartWindow;
4.1 Test on iPhone simulator: it works!
4.2 Test on iPhone device: it fails…
This works for Ti SDK 2.1.3 - it is a 2.1.4 specific issue.
Link to user's Q&A question: [http://developer.appcelerator.com/question/144737/ui-modules-not-included-while-building-for-ios-device-in-ti-214]
Additional user comments from Q&A: I got it: AppStartWindow.js was in IPhone-folder. It seems to be a bug on 2.1.4 that files in there are not respected during ipa-generation?! If AppStartWindow is put directly in root, everything works... Please fix!
Checked placing the AppStartWindow.js in the /resources/iphone folder. Made a slight modification to the window creation so I could see the window opening. It worked as expected with: Mac OS 10.8.3 SDK: 3.1.0.v20130402092426 Appcelerator Studio, build: 3.1.0.201303312320 CLI 3.1.0-beta node-appc 1.0.29-beta
Closing per Hannes' comment.