Titanium JIRA Archive
Appcelerator Community (AC)

[AC-490] 5.x SDK and Xcode 7 - No app.js on when installed to device

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-11-11T05:01:45.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterJosh Lewis
AssigneeShak Hossain
Created2015-11-05T14:25:59.000+0000
Updated2015-11-17T15:00:23.000+0000

Description

Running on the simulator works fine. However, when plugging in a device and opening the XCode project and deploying to the device, it cannot find the app.js file. Standard code doesnt work: ~~~ // this sets the background color of the master UIView (when there are no windows/tab groups on it) // create tab group var tabGroup = Titanium.UI.createTabGroup(); // // create base UI tab and root window // var win1 = Titanium.UI.createWindow({ title:'ACP Board ACE', oldtitle:'ACP Board ACE', backgroundColor:'#fff', layout:'vertical', url:'main.js' , backButtonTitle:'', orientationModes : [Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT], navTintColor:getBlue() }); var tab1 = Titanium.UI.createTab({ window:win1, }); tabGroup.addTab(tab1); // open tab group setTimeout(function() { tabGroup.open(); }, 3000); ~~~

Comments

  1. Sharif AbuDarda 2015-11-08

    Hello [~joshlewis], According to your description it"s not clear what do you mean by this "opening the XCode project and deploying to the device". Are you trying to run the app to device from Appcelerator studio? Please clear your point. Thanks.
  2. Josh Lewis 2015-11-08

    When you open the build/iphone/Xcode Project, so that you can deploy to a device, archive, setup the correct profiles, etc etc, it always says 'no app.js file'
  3. Sharif AbuDarda 2015-11-10

    Hello [~joshlewis], For me it's working with xCode 7.1. The project runs on Device iPod5G, iOS 9.0. After I build the project in Appcelerator studio with SDK 5.0.2.GA. Please provide the screenshot and xCode log. Thanks.
  4. Josh Lewis 2015-11-12

    There is no log that I can find, it never makes it to the debugging window in Xcode. It just crashes and says that it cant find app.js with the red screen.
  5. Josh Lewis 2015-11-17

    Here is a complete app.js file for one that gives me 'no app.js found' when deploying using xcode 7 and any of the 5.x sdks. As you can see, there is nothing special in this code. ~~~ Titanium.UI.setBackgroundColor("#000"), Titanium.UI.setBackgroundImage("Default.png"); var isAndroid = !1, isIphone = !0; var tabGroup = Titanium.UI.createTabGroup({ tabsBackgroundColor : "#000", tabsTintColor : "#fff" }), homeWin = Titanium.UI.createWindow({ title : "EMPATHETICS", backgroundColor : "#2a98c1", url : "home.js", barColor : "#000", navTintColor : "#fff", backButtonTitle : "", layout : "vertical", orientationModes : [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT] }), tab1 = Titanium.UI.createTab({ title : "EMPATHETICS", window : homeWin }), newsWin = Titanium.UI.createWindow({ title : "News", backgroundColor : "#2a98c1", url : "news.js", barColor : "#000", navTintColor : "#2a98c1", backButtonTitle : "", layout : "vertical", orientationModes : [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT] }), tab2 = Titanium.UI.createTab({ title : "News", window : newsWin }), aboutWin = Titanium.UI.createWindow({ title : "About", backgroundColor : "#2a98c1", url : "about.js", barColor : "#000", navTintColor : "#fff", backButtonTitle : "", layout : "vertical", orientationModes : [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT] }), tab3 = Titanium.UI.createTab({ title : "About", window : aboutWin }), contactWin = Titanium.UI.createWindow({ title : "contact", backgroundColor : "#fff", url : "contact.js", barColor : "#000", navTintColor : "#fff", backButtonTitle : "", layout : "vertical", orientationModes : [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT] }), tab4 = Titanium.UI.createTab({ title : "Contact", window : contactWin }); tabGroup.addTab(tab1); tabGroup.addTab(tab2);tabGroup.addTab(tab3); tabGroup.addTab(tab4); setTimeout(function() { tabGroup.open() }, 3000); ~~~

JSON Source