Cocoapods ld: library not found for -lPods-Projectname

后端 未结 16 884
一整个雨季
一整个雨季 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 11:12

    Ensure that Build Active Architectures Only settings for both of your project and the Pods project were equal for debug and release configuration! That's was a problem in my case.

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

    In my case I found that a mis-match of deployment target of the Project (iOS 11.4) versus the Target (iOS 10.3). Updating the target to iOS 11.4 fixed the issue.

    Project > Info > Deployment Target > iOS Deployment Target
    Project > Target > General > Deployment Target > Target

    Podfile: platform :ios, '11.4'

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

    I realized the xcproject file was opened instead of the updated workspace. This fixed my error. Hope this information will help others too.

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

    If none of the other answers help you, try this:

    • Deintegrate cocoa pods using pod deintegrate. Check this link https://github.com/kylef/cocoapods-deintegrate.
    • Search on the build settings for target and project file for "pod". Anything that looks like it belonged to cocoa pods, remove.
    • Finally, run pod install once again.
    0 讨论(0)
提交回复
热议问题