Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2007] iOS: Ti Modules used only in /iphone are not included in build for iOS devices on Ti SDK 2.1.4

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-04-02T23:59:16.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsregression
ReporterHannes Becker
AssigneeMauro Parra-Miranda
Created2012-11-16T15:34:12.000+0000
Updated2016-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.

Comments

  1. Stephen Feather 2012-11-16

    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]
  2. Eric Merriman 2013-04-02

    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!
  3. Eric Merriman 2013-04-02

    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
  4. Mauro Parra-Miranda 2013-11-26

    Closing per Hannes' comment.

JSON Source