- Home /
Xcode 5.1 - Numerous compile errors
All of a sudden (possibly after rebuilding my iOS project from Unity) I am getting numerous "Undefined symbol" errors when I try to run my app in Xcode. My app was working fine earlier in the day and either rebuilding it or cleaning the project in Xcode started spitting out these errors when I try to run it:
Undefined symbols for architecture armv7:
"_UnityGetWWWURL", referenced from:
iPhoneWWW::GetUrl() const in libiPhone-lib.a(iPhoneWWW.o)
"_UnityGetWWWDataLength", referenced from:
iPhoneWWW::GetSize() in libiPhone-lib.a(iPhoneWWW.o)
iPhoneWWW::GetPartialSize() const in libiPhone-lib.a(iPhoneWWW.o)
iPhoneWWW::GetProgress() const in libiPhone-lib.a(iPhoneWWW.o)
"_UnityDestroyWWWConnection", referenced from:
iPhoneWWW::~iPhoneWWW() in libiPhone-lib.a(iPhoneWWW.o)
"_UnityStartWWWConnectionPost", referenced from:
iPhoneWWW::DoInit(char const*, char const*, int, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&) in libiPhone-lib.a(iPhoneWWW.o)
"_UnityGetWWWData", referenced from:
iPhoneWWW::GetData() in libiPhone-lib.a(iPhoneWWW.o)
iPhoneWWW::GetPartialData() const in libiPhone-lib.a(iPhoneWWW.o)
"_UnityShouldCancelWWW", referenced from:
iPhoneWWW::Cancel() in libiPhone-lib.a(iPhoneWWW.o)
"_UnityStartWWWConnectionGet", referenced from:
iPhoneWWW::DoInit(char const*, char const*, int, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&) in libiPhone-lib.a(iPhoneWWW.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
There are a couple of recommended solutions on Stack Overflow that suggest removing armv64 from Build Settings>Valid Architectures and also setting Build Active Architecture Only to NO, but those solutions aren't working for me.
This is definitely not an isolated incident as I am finding parts and pieces of similar issues with Unity and Xcode 5.1 out there via Google, but no solutions.
Rolling back to an old version of Xcode is not an option for me at this point.
I am going to try to roll back my iOS project to yesterday (Time Machine on the Mac...) but I wanted to see if anyone else has run into this and come up with a workaround.