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
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.
-
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?
-
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.
-
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.
- Download IDE
- Download sample code
- 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?
-
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.
- Download IDE
- Download sample code
- 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?