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
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
-
(dunno why it posted twice)
-
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.
-
(posted twice)
-
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…
-
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?
-
Also having problems with this… Anyone?
-
Delete ~/Library/Application Support/Titanium then delete all the build/iphone/build directories in your projects. After much frustration this worked for me.
-
Delete ~/Library/Application Support/Titanium then delete all the build/iphone/build directories in your projects. After much frustration this worked for me.
-
(why did it post twice? d'oh)
-
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 wastedhttp://developer.appcelerator.com/blog/2010/05/titanium-and-iphone-os-4.html
This fixed it for me where everything else failed. Good luck :-)
-
sorry for the duplicates
-
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?