Titanium Community Questions & Answer Archive

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

iPhone apps not building

Getting undefined symbols when building either KitchenSink or any app on iPhone.

Just installed Titanium developer (1.2.1), with 1.3 SDK. Got an iPhone 3.2 SDK. Is there a need to upgrade/downgrade any of the SDKs to resolve the linking issues?

Found these in the log:

Undefined symbols:
.objc_class_name_NSObject, referenced from:
.objc_class_name_WTIMainThreadCaller in libTiCore.a(MainThreadMac.o)
.objc_class_name_NSString, referenced from:
literal-pointer@OBJC@cls_refs@NSString in libTiCore.a(UnicodeFoundation.o) .objc_class_name_NSCharacterSet, referenced from:
literal-pointer@OBJC@cls_refs@NSCharacterSet in libTiCore.a(UnicodeFoundation.o)
ld: symbol(s) not found

— asked June 17th 2010 by Alvaro Ramirez
0 Comments

13 Answers

  • Accepted Answer

    Hi I am having same problem I have tried;

    • http://developer.appcelerator.com/blog/2010/05/titanium-and-iphone-os-4.html

    • Delete ~/Library/Application Support/Titanium then delete all the build/iphone/build directories in your projects. After much frustration this worked for me.

    • Reinstalled titanium, including latest up dates

    My app was working before in version 3.1 but following up grade to SDK 3.2 and 4.0, I cannot even get even kitchen sink to work.

    Quick question has any one else continued to have this trouble. I am confused that some people have been able to resolve this issues and others not using suggested strategies. Is it to do with how I have installed SDK rather than issue in titanium set up , Or should I just remove current 4.0 SDK and go back to earlier versions.

    Any suggestions welcome.

    Andrew

    — answered June 26th 2010 by Andrew Clark
    permalink
    1 Comment
    • Hi
      I just managed to get it going; basically reinstalled every thing after deleting titanium and using

      http://developer.appcelerator.com/blog/2010/05/titanium-and-iphone-os-4.html

      no idea why it worked this time. Hope this helps some one else

      Andrew

      — commented June 26th 2010 by Andrew Clark
  • (dunno why it posted twice)

    — answered June 17th 2010 by Justin Vincent
    permalink
    0 Comments
  • I had a lot of issues related to the certificate signing not being exactly right. Don't know if this helps, but thought it might be worth a mention.

    — answered June 17th 2010 by Justin Vincent
    permalink
    0 Comments
  • (posted twice)

    — answered June 17th 2010 by Alvaro Ramirez
    permalink
    0 Comments
  • Opening the xcode project file shows foundation.framework isn't found. This is likely to do with Framework search paths wrongly set up. Looking into it…

    — answered June 17th 2010 by Alvaro Ramirez
    permalink
    1 Comment
    • Was there a solution to this? I am now getting the same problem?

      — commented June 23rd 2010 by Nick The Geek
  • bump I'm receiving the same error when attempting to run in the emulator (also not running on device);

    Undefined symbols:
    ".objc_class_name_NSObject", referenced from:
    .objc_class_name_WTIMainThreadCaller in libTiCore.a(MainThreadMac.o)
    ".objc_class_name_NSString", referenced from:
    literal-pointer@OBJC@cls_refs@NSString in libTiCore.a(UnicodeFoundation.o)
    ".objc_class_name_NSCharacterSet", referenced from:
    literal-pointer@OBJC@cls_refs@NSCharacterSet in libTiCore.a(UnicodeFoundation.o)

    Titanium is fully up to date, using Titanium 1.2.1, the project is set up for Titanium SDK 1.30. I've tried compiling with both iOS3.2 and iOS4; I get the same error message regardless of which SDK I use.

    I assumed it was related to something I've done in code (despite knowing this app was working in iOS3.1 on the same machine without issue this morning). To rule this out, I downloaded the latest version of Kitchensink and ran it, only to get exactly the same error again.

    I've reinstalled both the iOS4 SDK and Titanium. No dice.

    I've heard a few whispers about xcode using the wrong SDK or using the wrong path etc. Thoughts?

    — answered June 22nd 2010 by Carly Lyddiard
    permalink
    0 Comments
  • Also having problems with this… Anyone?

    — answered June 23rd 2010 by Jonatan Lundin
    permalink
    0 Comments
  • Delete ~/Library/Application Support/Titanium then delete all the build/iphone/build directories in your projects. After much frustration this worked for me.

    — answered June 23rd 2010 by Nick The Geek
    permalink
    0 Comments
  • Delete ~/Library/Application Support/Titanium then delete all the build/iphone/build directories in your projects. After much frustration this worked for me.

    — answered June 23rd 2010 by Nick The Geek
    permalink
    0 Comments
  • (why did it post twice? d'oh)

    — answered June 24th 2010 by Carly Lyddiard
    permalink
    0 Comments
  • After hunting around for ages I finally stumbled across a blog post from May that has a patch.

    I didn't even know there were patches? No mention on the download screen, no "patches" area in the site.
    little sigh - so much time wasted

    http://developer.appcelerator.com/blog/2010/05/titanium-and-iphone-os-4.html

    This fixed it for me where everything else failed. Good luck :-)

    — answered June 24th 2010 by Carly Lyddiard
    permalink
    0 Comments
  • sorry for the duplicates

    — answered June 28th 2010 by Tanel Teemusk
    permalink
    0 Comments
  • It's great that some of you got it working.
    I recently upgraded to Iphone SDK 4.0 and none of my apps work any more.
    I've done 2 reinstalls to Titanium already and deleted and recreated many projects. Still nothing. The best I could do was to get the ipad simulator to open and showing me a blank project.
    Really frustrating. The error for any project usually is:

    [ERROR] Build Failed. Please see output for more details

    Also already installed the libTiCore.a but nothing changed. Same error all of the time.
    Should I uninstall and reinstall iphone SDK?

    — answered June 28th 2010 by Tanel Teemusk
    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.