Hi,
I’m having the folowing problem on Xcode :
“ld: library not found for -liPhone-lib
clang: error: linker command failed with exit code 1 (use -v to see invocation)”
I got the same error 5 months ago but i just remember it was a pain to solved it. I’m usually write all the error solution somewhere, but not that one.
I’m using ios native plugin (stan asset), i tried the folowing things to fix it (without success) :
-I tried to recompile many times.
-I downgrade my unity version from 5.2 to 5.1.3.
-I change the deployement target.
-I removed and add again libiPhone-lib.a in the “linked Frameworks and Libraries” section.
-I empty the “search Paths/Library Search Paths” field. (saw that solution somewhere)
I attach few screenshots of my project :
-Architecture
I just update xcode to xcode 7.0 and my error message is different :
“ld: ‘/Users/Leo/Appli mobile/UNITY/stopsmoke/build ios2/Libraries/libiPhone-lib.a(MonoPosixHelper.o)’ does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64”
I fix it by disabled bitcode (idk what is it)
Now i have my old error again
And the libiconv2.dylib file is now in red…not a great color
Problem solved !
My plugin was out of date, i start this app 3 months ago and swich on other projects before finishing that one. So i tought my plugin was updated but no…
Spend 2 entire days for that. I’m not really good with xcode and don’t really understand what am i doing with it, everytime i’m facing a problem i have to check online to solved it. Hate you apple!