Library not found for -liPhone-lib

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.

This is my error message :

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

Linked framework and libraries :


My libiphone-lib.a file in my project :

I’m out of idea and there is not that much answer online on this error :s

Thanks
Leo

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 :frowning:
And the libiconv2.dylib file is now in red…not a great color

1 Like

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!

This is quite important to learn about. Read this document: https://developer.apple.com/library/prerelease/watchos/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html

What plugin was it, please?

Ios Native by stan asset

I’m getting this same error but don’t have that plugin :confused:

Try to update all your plugins.

Ah yes, I got it working after making sure I had the latest 4.x version, the latest Mac version and the latest Xcode version

I found this very simple answer by Injectios and it works for me!
http://stackoverflow.com/questions/24340938/xcode-does-not-build-unity3d-project-lib-not-found
Just replace
"(SRCROOT)/Libraries" with (SRCROOT)/Libraries
in Library Search Paths.

2 Likes