IOS Simulator Not Working After upgrading to XCODE 4.5.1

You must Login before you can answer or comment on any questions.

Hi Everyone,

I am having an issue trying to get the IOS simulator to run with Ti Studio.

When I try to run a Titanium Mobile project - I get the error:

** [ERROR] Invalid --ios-version value '5.0' Accepted values: 6.0 **

I have the following installed:

Mac OS Version: 10.7.4 Titanium Studio Build: 3.0.1.201210241935 Titanium SDK Version: 3.0.0.v20121025141614 XCode Version: 4.5.1 (4G1004) XCode Simulators: iOS 5.1, 5.0, 4.3

I am also able to run iOS 6.0 simulator from inside of XCode by going to XCode -> Open Developer Tool -> iOS Simulator. I am also able to change the iOS Version from within the iOS Simulator when its started this way

I have seen there was a ticket in JIRA with a similar error but seemed to be related to the CLI. I have installed a newer version of the Ti SDK than the one that is reported in the JIRA ticket that was fixed.

Has anyone else had this issue? This issue started after I upgraded XCODE to 4.5.1.

Thanks Sean

— asked 8 months ago by sean sean
0 Comments

2 Answers

Stephen,

Not sure if this qualifies has the correct answer or not.

I am now able get the simulator to work using the following steps.

1.Found the correct path to XCode after upgrading.

2.Used the following command to set the new path "$ xcode-select -switch /Applications/Xcode.app/Contents/Developer"

3.Open up Titanium Studio -> Preferences --> Titanium Studio --> Titanium --> Refresh.

Now it shows the correct path in IOS SDK Home. Then under run configurations I can now select 6.0 in the dropdown and the simulator works.

Then only issue I am having now is if I change that dropdown to 5.1,5.0, or 4.3 the app will not run and I receive the original error again.

Should I be able to choose other OS's to run my projects ??

Thanks for your help.

Sean

Have you opened your run configuration dialog:

run configuration

And changed the iOS SDK target there:

target

— answered 8 months ago by Stephen Feather
answer permalink
6 Comments
  • Hi Stephen,

    Yea, I have opened up the Run Configurations, when I do I only see IOS SDk 4.3 and 5.0.

    When I start XCode separate from Studio and select run simulator I can run the Simulators 4.3, 5.0, 5.1, and 6.0.

    I can provide screenshots if you need me to (if so how do I add screenshots directly to the forum )

    Thanks for your help

    Sean

    — commented 8 months ago by sean sean

  • may need to use xcode-select from a terminal to ensure the command line paths are setup correctly.

    — commented 8 months ago by Stephen Feather

  • When I run ~~~xcode-select~~~ this is what I get.

    ~~~xcode-select -version~~~ xcode-select version 2308

    ~~~xcode-select -print-path~~~ /Volumes/Xcode/Xcode.app/Contents/Developer

    Hope this helps

    Thanks

    — commented 8 months ago by sean sean

  • Show 3 more comments

Your Answer

Think you can help? Login to answer this question!