Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Titanium can't find iPhone SDK

I am using iPhone SDK 3.0 for some other projects built in Xcode and everything works fine. Titanium complains that the SDK is not present when I try to create a new project in Titanium.

I am using Titanium 1.0 w/ mobilesdk 0.9.3 on Leopard (10.5.8)

I can import the KitchenSink app and it fails with:

[INFO] Executing XCode build...
[INFO] Executing XCode Compiler [toggle output]
[DEBUG] executing command: xcodebuild -configuration Debug -sdk iphonesimulatornull WEB_SRC_ROOT=/Users/blahblah/Desktop/KitchenSink/build/iphone/tmp GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=35c56d03-ff0f-4bb3-be87-e93973802a2f DEPLOYTYPE=development DEBUG=1
[ERROR] xcodebuild: error: SDK "iphonesimulatornull" cannot be located.
[INFO] Compile completed in 0.356 seconds
[INFO] Launching application in Simulator
[ERROR] Unknown or unsupported SDK version: null

Running the same command and replacing iphonesimulatornull with iphonesimulator3.0 from the iphone Xcode project built by Titanium at:

/Users/blahblah/Desktop/KitchenSink/build/iphone

Fails with:

Undefined symbols:
  "_UISaveVideoAtPathToSavedPhotosAlbum", referenced from:
      -[MediaModule imagePickerController:didFinishPickingMediaWithInfo:] in libTitanium.a(MediaModule.o)
      -[MediaModule saveToPhotoGallery:] in libTitanium.a(MediaModule.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
** BUILD FAILED **

I really want to give Titanium a go before giving up on it and reverting back to a normal Objective C Xcode project. Aside from upgrading to Snow Leopard and upgrading to Titanium 1.1 w/ mobilesdk 1.1.2, what else can I try?

Upgrading to Snow Leopard is not an option for me.

Update:

I finally found iPhone SDK 3.1.3. Now, Titanium can "find" the iPhone SDK when creating a new project. But, now there's a problem with testing (launching) the application in the iPhone simulator: the SDK pull down in the Test & Package tab always says "loading…". Launching the app tries to run the following command which obviously doesn't work:

xcodebuild -configuration Debug -sdk iphonesimulatorloading... WEB_SRC_ROOT=/Users/blahblah/Desktop/KitchenSink/build/iphone/tmp GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=e5786c48-0b5f-4252-ae2c-e1a1b5cb584d DEPLOYTYPE=development DEBUG=1

Any ideas?

One workaround I found was that I can run the command from Terminal changing the sdk version to iphonesimulator3.1.3 and things build correctly, but the simulator doesn't launch. Opening the iPhone project in Xcode and running through the simulator works.

However, here is no icon for the app in the iphone simulator and the build log shows a custom shell script error from the following:

setenv TARGET_BUILD_DIR /Users/blahblah/Desktop/KitchenSink/build/iphone/build/Debug-iphonesimulator
setenv UNLOCALIZED_RESOURCES_FOLDER_PATH KitchenSink.app
setenv WEB_SRC_ROOT /Users/blahblah/Desktop/KitchenSink/build/iphone/tmp
/bin/sh -c /Users/blahblah/Desktop/KitchenSink/build/iphone/build/KitchenSink.build/Debug-iphonesimulator/KitchenSink.build/Script-B4EA72B50FBC96AA005AA7FB.sh
cp: /Users/blahblah/Desktop/KitchenSink/build/iphone/tmp/: No such file or directory

I suspect my workarounds are insufficient.

Does Titanium 1.0 with SDK 0.9.3 support Leopard w/ iPhone SDK 3.1.3? I'm beginning to think not…

I might have to put off using Titanium until I can upgrade to Snow Leopard :(

Update 2 / Solution-ish…

Updated my iPhone SDK to 3.1.
Updated the mobileSDK to 1.1.2 and then copyied over the 0.9.3 iphonesim over the 1.1.2 one.

— asked April 5th 2010 by Donnie Tognazzini
  • iphone
  • leopard
  • sdk
0 Comments

7 Answers

  • Hi Donnie,

    I think I read that Titanium 1.0+ supports iPhone SDK 3.1.X (and no longer 3.0)

    Are you able to upgrade to 3.1?

    cheers,
    Chris.

    (I think there's a Leopard version 3.1.x downloadable from the ADC)

    — answered April 5th 2010 by Chris Reed
    permalink
    0 Comments
  • Am I having this problem Donnie, how did yo usolved it? THE EXACt SAME ISSUE…. I have the latest version 1.2.1 of titatnium developer and the latest version of iPhone SDK

    — answered April 6th 2010 by Raul Riera
    permalink
    0 Comments
  • @Raul
    See "Update 2 / Solution-ish…" section in initial question.

    — answered April 6th 2010 by Donnie Tognazzini
    permalink
    0 Comments
  • Sorry to ask Donnie, but can you be a little more specific than this?

    "Updated my iPhone SDK to 3.1. Updated the mobileSDK to 1.1.2 and then copyied over the 0.9.3 iphonesim over the 1.1.2 one." what is the iphonesim? the simulator? and copied from where to where?

    === UPDATE

    Ok, found the iphonesim file, copied at but that didnt work… also forgot to say I am on Snow Leopard…. I am thinking about doing a full format and reinstall everthing… Appceletator seems to just overlook this problem (3 version updates and no fix)

    — answered April 6th 2010 by Raul Riera
    permalink
    0 Comments
  • @Raul
    If you're on Snow Leopard then you need to install iPhone SDK 3.2. I think you also need mobile SDK 1.1.2 and perhaps Titanium Developer 1.1. I think this plenty of info on the Q&A about getting Titanium to work on Snow Leopard. My buddy was able to just download Titanium and get it to work out of the box. Good luck.

    — answered April 7th 2010 by Donnie Tognazzini
    permalink
    0 Comments
  • Question: Why do i need to install the mobile SDK 1.1.2? Isn't that just standard with Studio?

    — answered September 20th 2011 by Todd Messer
    permalink
    0 Comments
  • Oh, Sorry… What is the difference between Developer and Studio?

    — answered September 20th 2011 by Todd Messer
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.