Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

library not found for -liPhone-lib

Discussion in 'iOS and tvOS' started by Tarzan111, Sep 19, 2015.

  1. Tarzan111

    Tarzan111

    Joined:
    Oct 8, 2014
    Posts:
    72
    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 :
    Capture d’écran 2015-09-19 à 15.23.56.png

    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
    Capture d’écran 2015-09-19 à 15.24.44.png

    Linked framework and libraries :
    Capture d’écran 2015-09-19 à 15.24.22.png
    My libiphone-lib.a file in my project :
    Capture d’écran 2015-09-19 à 15.23.40.png


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

    Thanks
    Leo
     
  2. Tarzan111

    Tarzan111

    Joined:
    Oct 8, 2014
    Posts:
    72
    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
     
    Last edited: Sep 20, 2015
    tazedy likes this.
  3. Tarzan111

    Tarzan111

    Joined:
    Oct 8, 2014
    Posts:
    72
    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!
     
  4. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,043
  5. flagshipdynamics

    flagshipdynamics

    Joined:
    Nov 22, 2012
    Posts:
    5
    What plugin was it, please?
     
  6. Tarzan111

    Tarzan111

    Joined:
    Oct 8, 2014
    Posts:
    72
    Ios Native by stan asset
     
  7. infinitypbr

    infinitypbr

    Joined:
    Nov 28, 2012
    Posts:
    3,149
    I'm getting this same error but don't have that plugin :/
     
  8. Tarzan111

    Tarzan111

    Joined:
    Oct 8, 2014
    Posts:
    72
    Try to update all your plugins.
     
  9. infinitypbr

    infinitypbr

    Joined:
    Nov 28, 2012
    Posts:
    3,149
    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
     
  10. ShoutTree

    ShoutTree

    Joined:
    Nov 1, 2013
    Posts:
    5
    Serebrennikov_K and SamiApps like this.