iOs build fails on 5.3
I am getting a bunch of errors
1) many
ld: warning: object file (/Users/myName/Documents/UnityProject/environ_1/Libraries/libiPhone-lib.a(CheckSum.o)) was built for newer iOS version (9.1) than being linked (6.0)
although I am running iOS 9.2;
and the latest xCode (7.2);
And the Latest Unity;
Then I get a slew of Vuforia errors through... Yes,
I am running the latest Vuforia too
???
ld: warning: object file (/Users/myName/Documents/UnityProject/environ_1/Libraries/libiPhone-lib.a(CheckSum.o)) was built for newer iOS version (9.1) than being linked (6.0)
Undefined symbols for architecture armv7:
"_kSecReturnRef", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_kSecReturnPersistentRef", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_kSecClassKey", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_kSecAttrKeyType", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_kSecValueData", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_kSecAttrKeyClass", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_kSecAttrKeyClassPublic", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_kSecAttrApplicationTag", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_SecItemDelete", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_SecKeyGetBlockSize", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_SecItemAdd", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_kSecClass", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_kSecAttrCanDecrypt", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_SecItemCopyMatching", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_SecTrustEvaluate", referenced from:
l154 in libvrunity.a(GTMSessionFetcher.o)
(maybe you meant: _OSX509Certificates_SecTrustEvaluate_m3_1051)
"_SecKeyDecrypt", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
"_kSecAttrKeyTypeRSA", referenced from:
l5874 in libVuforia.a(libVuforia.a-armv7-master.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Answer by LeoCeballos · Dec 11, 2015 at 06:09 AM
I just ran into this and solved it, so I hope I can help.
Apparently, something has changed relatively recently because I didn't used to have to do this. You need to, in XCode, add the "Security" and "SystemConfiguration" frameworks to the XCode project.
Check out this stackoverflow answer for adding frameworks. Don't worry, they are built in to XCode apparently.
http://stackoverflow.com/questions/3352664/how-to-add-existing-frameworks-in-xcode-4
@LeoCeballos, BINGO!!!! Thank you So $$anonymous$$uch Leo
I had the same problem and your answer solved it, thank you!
Lifesaver. Works like a charm. You can request these frameworks as dependencies on, say, libVuforia.a, in Unity, to save adding it in XCode.
Your answer
Follow this Question
Related Questions
Objects with animation disappear in IOS build. 6 Answers
Monetization breaks iOS build in XCode. Also breaks Android build. 1 Answer
converting managed assemblies to c++ building to ios and unity crashes 1 Answer
iOS xCode build hangs when bitcode is enabled 0 Answers
Unity 5.4 crash after iOS version building and open xcode8 0 Answers