Cocoapods ld: library not found for -lPods-Projectname

后端 未结 16 885
一整个雨季
一整个雨季 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:06

    Make sure Build Active Architectures Only in your Project/Target and in your Pod/Target and Pod are the same. We often set the debug yes and set the release no.

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

    You can try "Build Active Architecture Only" = YES . it may be solving problem.

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

    I had a very different experience. I tried removed the library from build settings to no avail. And honestly, I couldn't see the logic behind it.

    What I did was try a new pod install. And so it gave me this error

    [!] The ProjectName [Debug] target overrides the LIBRARY_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods-/Pods-.debug.xcconfig. This can lead to problems with the CocoaPods installation - Use the $(inherited) flag, or - Remove the build settings from the target.

    [!] The ProjectName [Release] target overrides the LIBRARY_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods-/Pods-.debug.xcconfig. This can lead to problems with the CocoaPods installation - Use the $(inherited) flag, or - Remove the build settings from the target.

    So I did what it told me to, I added the $(inherited) flag to build settings. And all worked well

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

    I had this problem when I accidentally opened project instead of workspace so Cocoapods where missing....

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

    Point to your Pods project, set the BaseSDK to iOS SDK since 'pod install' process clear it. Also set Build Valid Architecture Only to NO That should work.

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

    Whenever I execute "pod install" it leads me to spend several hours of fixing something related with it. So, I deleted CocoaPods stuff and do not have problems any more! Now I am lucky and happy man.

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