Search Unity

  1. We're looking for feedback on Unity Starter Kits! Let us know what you’d like.
    Dismiss Notice
  2. Unity 2017.2 beta is now available for download.
    Dismiss Notice
  3. Unity 2017.1 is now released.
    Dismiss Notice
  4. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  5. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice
  6. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice

Library not found -lPods-Unity-iPhone

Discussion in 'Unity Cloud Build' started by Lucasito, Aug 12, 2017.

  1. Lucasito

    Lucasito

    Joined:
    Mar 22, 2013
    Posts:
    14
    I need remove libPods-Unity-iPhone.a into link binary
    I use RemoveFileFromBuild, RemoveFrameworkFromProject, but it's non remove
    How can I remove it or how do I prevent it from appearing in pbxproj?
    Unity5.6.2f1
    An example of how it does not work:
    Code (csharp):
    1. string projPath = pathToBuiltProject + "/Unity-iPhone.xcodeproj/project.pbxproj";
    2.  
    3. PBXProject proj = new PBXProject();
    4. proj.ReadFromString(File.ReadAllText(projPath));
    5.  
    6. string target = proj.TargetGuidByName("Unity-iPhone");
    7.  
    8. proj.SetBuildProperty(target, "ENABLE_BITCODE", "NO");
    9. proj.SetBuildProperty(target, "CLANG_ENABLE_MODULES", "YES");
    10. proj.RemoveFrameworkFromProject (target, "libPods-Unity-iPhone.a");
    11.  
    12. File.WriteAllText(projPath, proj.WriteToString());
    SetBuildProperty is worked
    3a8cb-clip-105kb[1].png
     
  2. Lucasito

    Lucasito

    Joined:
    Mar 22, 2013
    Posts:
    14
    Hand build:
    If Unity 5.6.1p4, libPods-Unity-iPhone not see into Link Binary With Libraries
    If Unity 5.6.2f1, libPods-Unity-iPhone exist.
    Cloud Build:
    Unity 5.6.1p4 or 5.6.2f1 - error:
    [xcode] ld: library not found for -lPods-Unity-iPhone
    [xcode] clang: error: linker command failed with exit code 1 (use -v to see invocation)