Cocoapods ld: library not found for -lPods-Projectname

后端 未结 16 883
一整个雨季
一整个雨季 2020-12-02 10:47

I\'ve installed cocoa pods library and some frameworks through it. Now when I compile project the build fails.

Error: ld: library not found for -lPods-Project clang:

相关标签:
16条回答
  • 2020-12-02 10:55

    I've had this error after adding a new build configuration.

    pod install helped, because it adds separate settings for each build configuration.

    0 讨论(0)
  • 2020-12-02 10:59

    Check your Project -> Targets -> Build Phases -> Link Binary With Libraries

    0 讨论(0)
  • 2020-12-02 11:00

    Fixed it by deleting the -lPods-Projectname.a in Link Binary (for newer versions, delete the -lPods-Projectname.a under the Frameworks group).

    0 讨论(0)
  • 2020-12-02 11:00

    The exact location that you should remove your libs is at:

    • Remove -lyourlibname.a in "Link Binary With Libraries" on "Build Phases" of your target.
    0 讨论(0)
  • 2020-12-02 11:00

    I experienced a similar error which affected one of my computers but not the other when compiling the same project.

    I reinstalled cocoapods, all gems, rebuilt the project and none of it worked. I finally got it to compile but required me to completely remove Xcode and related data (iPhone simulator, DerivedData) then reinstall Xcode.

    0 讨论(0)
  • 2020-12-02 11:05

    Go to Product > Scheme > Edit Scheme... > Build > + > Add the Pods-Projectname.a and drag it to the top > Clean & Build your project.

    0 讨论(0)
提交回复
热议问题