Search Unity

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:
    48
    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:
    48
    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. deulamco

    deulamco

    Joined:
    Nov 10, 2016
    Posts:
    4
    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:
    48
    I fix this problem. Need remove cocoapods.
    Assets/PlayServicesResolver/Editor/Google.IOSResolver.dll