Titanium Community Questions & Answer Archive

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

Fail to build - Undefined Symbols

Hi All,

today inexplicably neither an app I am working on nor the kitchen sink will compile for iPhone simulator 3.1.x. I updated Xcode to the latest SDK and still have the same problem with 3.2 or 4.0.

I get the following in the in the build 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
collect2: ld returned 1 exit status

I have tried creating a new project and copying Resources to it.

I have deleted the build/iphone directory and have tried re-installing Titanium.

I am pulling my hair out on this.

I am using Titanium 1.2.1, SDK 1.3.0.

Cheers,

Nick

— asked June 23rd 2010 by Nick The Geek
  • compile
  • symbols
  • undefined
0 Comments

5 Answers

  • Accepted Answer

    I'm also getting the same error. Have tried trashing ~/Library/Application Support/Titanium with no luck. I too have had the experience of Download IDE, Download Kitchensink, Build - FAIL.

    — answered July 23rd 2010 by Paul Cowles
    permalink
    1 Comment
    • Updated to 1.3.2 via developer blog post and now working.

      — commented July 23rd 2010 by Paul Cowles
  • I had a poke about in Xcode. I loaded the project and I can see that doesn't find any of the Frameworks. Any ideas?

    — answered June 23rd 2010 by Nick The Geek
    permalink
    0 Comments
  • Trashing ~/Library/Application Support/Titanium helped. I can actually launch the simulator now.

    I managed to solve my run on device issue as well, by trashing all of the build directories.

    — answered June 23rd 2010 by Nick The Geek
    permalink
    0 Comments
  • I'm having the exact same problem. Even after copying all the hard-coded absolute paths to the kitchen sink project I get these same link errors. This seems like a pretty basic problem.

    1. Download IDE
    2. Download sample code
    3. Build

    If this doesn't work out of the box, I don't have a lot of hope for this thing, and technically this isn't "open source" if you have to pay to get help with it. Can anyone help either of us?

    — answered July 19th 2010 by Darin Johnson
    permalink
    0 Comments
  • I'm having the exact same problem. Even after copying all the hard-coded absolute paths to the kitchen sink project I get these same link errors. This seems like a pretty basic problem.

    1. Download IDE
    2. Download sample code
    3. Build

    If this doesn't work out of the box, I don't have a lot of hope for this thing, and technically this isn't "open source" if you have to pay to get help with it. Can anyone help either of us?

    — answered July 19th 2010 by Darin Johnson
    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.