Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Library not found -lPods-Unity-iPhone

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

  1. Lucasito

    Lucasito

    Joined:
    Mar 22, 2013
    Posts:
    80
    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:
    80
    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)
     
  3. Deleted User

    Deleted User

    Guest

    This happen in UNITY 2017.1.1f1 too, and I have to remove it manually after exported.
    Thank guys , this fix still work !
     
  4. Lucasito

    Lucasito

    Joined:
    Mar 22, 2013
    Posts:
    80
    I fix this problem. Need remove cocoapods.
    Assets/PlayServicesResolver/Editor/Google.IOSResolver.dll