When I try to build my first application for iOS I see on the console that the build starts but never ends. No iPhone simulator is displayed. Also no error is seen at the build.log.
I tried to clean and rebuild. I tried to build for iPad. Nothing. Same behavior.
What is going wrong ?
Thanks.
3 Answers
Hi Alon
We are going to need more than that from you so we can help. This would normally mean some code snippets from you that we can use to see if there is anything obvious. It would also be nice if you let us know if you have ever managed to run an app in the simulator, or have managed to start the simulator manually so you can report it does actually start.
Start iOS Simulator manually; In the OS search enter iOS Simulator, select the top match, does it work?
Obviously if you are new to this so we will all be nice :)
I have included the most basic of basic app.js file contents below. I would like you to create a brand new project, accepting ALL default options - only setting a name and app id.
Open the app.js file and delete ALL the contents. Paste in the code you see below.
Titanium.UI.setBackgroundColor('#000'); var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); var label1 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 1', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', width:'auto' }); win1.add(label1); var tabGroup = Titanium.UI.createTabGroup(); tabGroup.addTab(tab1); tabGroup.open();This project will work in all simulators and all devices.
Run this and report back what happens. This will test that you can run a basic project, if you can then the problem is in the code not the ability to run a project.
Right now I am ruling out things, basically a 50/50 drill down, where we aim to remove half the possible issues in each cycle of tests.
Hi Malcolm, Thanks for the rapid answer. Well, this is indeed the first time I'm trying this framework. This is the first time I'm trying to build a project in Appcelerator. I used a new project which contained from the template very similar code to the one you provided (two tabs instead of one). In any case, I tried the code you provided but I get the same results. The build starts but never ends (that is no iPhone simulator is run). I tried to build a new "HelloWorld" application (not related to the one from Appcelerator) directly from the XCode IDE and it works fine. The build succeeds and the iPhone simulator is run OK and the HelloWorld application (built in XCode) as well. But, afterwards when I rebuild the "MyFirstApplication" in Appcelerator, the same result I get - build is not finished. More than that, the iPhone simulator is closed at the beginning of the build but is not restarted afterwards.
The version of XCode I'm using is 4.2. In the dashboard panel of the Titanium I see: "iOS SDK is installed correctly!". I let the Titanium to update itself (its SDK) at the installation phase.
Any clue what is missing ? Anything I should add to the configuration of the tools ?
Thanks, Alon.
Some more info as requested:Host OS: Mac OS X OS Arch: x86 JRE Version: 1.6.0_29 JRE Vendor: Apple Inc. JRE Home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Install Directory: file:/Volumes/Titanium Studio/Titanium Studio/ Version: 2.1.1.201207271312 VM Arguments: -Xms40m -Xmx1024m -Declipse.p2.unsignedPolicy=allow -Declipse.log.size.max=10000 -Declipse.log.backup.max=5 -Xdock:icon=../Resources/titanium.icns -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -XX:MaxPermSize=256m -Djava.class.path=/Volumes/Titanium Studio/Titanium Studio/TitaniumStudio.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
Workspace Directory: file:/Users/User/Documents/Titanium_Studio_Workspace/ Language: en_US
Titanium Mobile SDK Version: 2.1.1 Mobile SDK Modules API Version:2 Mobile SDK Timestamp: 07/27/12 14:01 Mobile SDK Build Number: 0fd84a2 Titanium Mobile SDK Location: /Library/Application Support/Titanium/mobilesdk/osx/2.1.1.GA
OS X Version: 10.6.8
Alon.
Your Answer
Think you can help? Login to answer this question!