An iOS SDK is missing

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

Hello, I'm unable to create a new mobile project because I keep seeing the message "An iOS SDK is missing". I have just installed Titanium Studio 1.0.8 and Xcode 4.3. I verified that Xcode is running fine. I'm working on a Mac Book Pro with Lion. I even tried reinstalling Xcode. Any help would be greatly appreciated.

— asked 1 year ago by Jeff Denton
4 Comments
  • Hello,

    Xcode 4.3 is not supported yet. You need to use 4.2. You can install 4.3 and 4.2 in parallel.

    Best,

    Mauro

    — commented 1 year ago by Mauro Parra

  • Ti Studio 2.0 supports Xcode 4.3 now, however I've upgraded both and I still get the error

    [INFO] Launching application in Simulator
    dyld: Library not loaded: @rpath/DevToolsFoundation.framework/Versions/A/DevToolsFoundation
      Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/iPhoneSimulatorRemoteClient.framework/Versions/A/iPhoneSimulatorRemoteClient
      Reason: image not found
    [INFO] Launched application in Simulator (3.20 seconds)

    — commented 1 year ago by Brett Ryan

  • After installed Titanium SDK 2.0.1.GA2 and set the Build Properties in tiapp.xml, I can successfully launch my app in the simulator.

    — commented 1 year ago by Bowie Poon

  • Show 1 more comment

16 Answers

I ran into the same problem and found that I had to run the following command to update the Xcode settings so it would find the iOS SDK:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Now when I build, I get an dyld error on the DevToolsFoundation framework, but at least this might get the next early adopter a bit further along in the process.

— answered 1 year ago by Paul Mietz Egli
answer permalink
5 Comments
  • i confirm this

    (i suggest everybody to NOT delete old Xcode 4.2 .. since 4.2 and 4.3 can live together

    — commented 1 year ago by Stefano Cecere

  • We're aware of this issue with Xcode 4.3 and are working on a resolution. Will post to the dev blog with more info ASAP.

    — commented 1 year ago by Kevin Whinnery

  • Also, refer to our official compatibility matrix here - Xcode 4.2 is the latest version we have certified for use.

    — commented 1 year ago by Kevin Whinnery

  • Show 2 more comments

check out this link and it will be able to build with sdk 1.8.2 in lion and xcode 4.3

http://seanfreitag.wordpress.com/2012/02/17/fixing-ios-simulator-via-command-line-on-xcode-4-3/

The ios-sim application that launches the simulator and starts the app is linked against the old /Developer/Platforms/ directory:

$ otool -l ios-sim
(lots of stuff)
Load command 17
          cmd LC_RPATH
      cmdsize 96
         path /Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks (offset 12)
I cloned the ios-sim repo from github and rebuilt in Xcode 4.3, but it still had issues locating the DevToolsFoundation framework until I added the following linker flags:
-Wl,-rpath
-Wl,$(DEVELOPER_DIR)/../OtherFrameworks
The LC_RPATH entries in the ios-sim executable are now correct for Xcode 4.3:
Load command 17
          cmd LC_RPATH
      cmdsize 128
         path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks (offset 12)
Load command 18
          cmd LC_RPATH
      cmdsize 80
         path /Applications/Xcode.app/Contents/Developer/../OtherFrameworks (offset 12)
I've added this information to TISTUD-1196; follow that bug for the official fix.

— answered 1 year ago by Paul Mietz Egli
answer permalink
3 Comments
  • You're just awesome. Compiled the ios-sim with your patch, changed on the mobilesdk, and it works :) THANK YOU!

    — commented 1 year ago by Ruben Fonseca

  • You rock. Thank you for taking the time to do this!

    — commented 1 year ago by Brendten Eickstaedt

  • Thank you! This fix works.

    — commented 1 year ago by Ionut Moraru

any chance we can get our hands on the build of ios-sim , to get the unfortunate souls out of purgatory.

I am unclear how to update iOS-sim myself

— answered 1 year ago by David Snell
answer permalink
6 Comments
  • Sure, I've forked the ios-sim project and posted a binary on Github here.

    — commented 1 year ago by Paul Mietz Egli

  • Wow, thanks for your quick solution to this! I even have Mountain Lion OSX and it worked without a problem!

    — commented 1 year ago by Ricardo Arguello

  • http://goo.gl/qlJ3c heres the 4.2.1 installer download link

    — commented 1 year ago by Matt Pilott

  • Show 3 more comments

I was running into the same problem with Xcode 4.5.

I re-installed Titanium Studio, ran command "sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/". Still the simulator would launch and quit.

Double clicked tiapp.xml file to open overview and changed the Titanium SDK from 1.7.5 to 3.0.0.GA and it started working.

It seems that due to the new xcode the file structure has completely changed. We need to wait for appcelerator to release an update :(

— answered 1 year ago by Matt Pilott
answer permalink
1 Comment
  • please update your answer when this problem is fixed, just to notify other users like me that stumble upon this post ;)

    — commented 1 year ago by Marco Seguri

How about to downgrade xCode to 4.2?

you could try the beta of titanium check this out to get the beta's http://preview.appcelerator.com/appcelerator/studio/standalone/update/beta/

I've installed beta build 1.0.9.201202141347 and latest Xcode, it doesn't work: An iOS SDK is missing. Titanium requires a version between 4.2 and 5.1 Any suggestion?

— answered 1 year ago by Dmitry Ivakin
answer permalink
3 Comments
  • The beta of Titanium Studio is not going to work until the ios-sim tool in the Titanium SDK is updated to work with Xcode 4.3. You can either downgrade your version of Xcode to 4.2.1 or install the ios-sim build that I provided on Github as described above.

    Follow TISTUD-1196 to be notified when the Titanium SDK is working with Xcode 4.3.

    — commented 1 year ago by Paul Mietz Egli

  • Can you give an absolute path from / where where to install this ios-sim tool? I cannot find the TITANIUM_HOME and spotlight search show no such file. Using find to scan the drive. absolute path in the readme would be nice.

    — commented 1 year ago by Matthew Kucic

  • TITANIUM_HOME refers to the directory where you installed the 1.8.1 SDK. Usually this is ~/Library/Application Support/Titanium, though older SDKs used to install in /Library/Application Support/Titanium.

    If you are using Titanium Studio, you can find the SDK directory as follows: open that app, then select "Preferences" from the "Titanium Studio" menu. Open the "Titanium Studio" item in preferences, then select "Titanium". The path listed under "Titanium SDK Home" is where your SDK is installed.

    — commented 1 year ago by Paul Mietz Egli

Guys, any update? This is the message I get when I run the iPad Kitchen sink:

~~~ [INFO] One moment, building ... [INFO] Titanium SDK version: 1.8.1 (01/27/12 17:31 a24502a) [INFO] iPhone Device family: ipad [INFO] iPhone SDK version: 5.0 [INFO] iPhone simulated device: ipad [INFO] Launching application in Simulator dyld: Library not loaded: @rpath/DevToolsFoundation.framework/Versions/A/DevToolsFoundation Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/iPhoneSimulatorRemoteClient.framework/Versions/A/iPhoneSimulatorRemoteClient Reason: image not found [INFO] Launched application in Simulator (2.37 seconds) [INFO] Application has exited from Simulator ~~~~

Hello everyone, I am new to app dev, i have exec the line posted by Paul Mietz Egli and now titanium is picking the iphone sdk.

could you keep me posted, pls?

I also can't get Titanium Studio to find my iOS SDK... so unfortunately it's pretty useless for me right now.

Any update of this issue? I know i'm running iOS 5.1 SDK at the moment and titanium can't find it because of the new way apple packages it SDK.

It works with Xcode 4.3 and SDK 2.x now (although for some reason the height of the tableRows behaves strange). If I compile with SDK 1.8.2 then I get the same error. So use 2.x and it should work...

Your Answer

Think you can help? Login to answer this question!