Cocoapods ld: library not found for -lPods-Projectname

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

提交回复
热议问题