Xcode - ld: library not found for -lPods

后端 未结 22 1403
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 18:27

I get these errors when I try to build an iOS application.

ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to s         


        
相关标签:
22条回答
  • 2020-11-28 18:38

    In a project with multiple targets I had the same issue after changing the Scheme and App name and tried to update pods. The issue was caused because of multiple entries in Build Phases -> Link Binary with Libraries where both the previous .a library and the current one was listed, while the previous one was not existing anymore. Removing the library from there cleared the problem.

    0 讨论(0)
  • 2020-11-28 18:39

    My problem had fixed by the following config:

    Build Active Architecture Only: YES
    
    0 讨论(0)
  • 2020-11-28 18:40

    My way

    1. create new project and install pod it will can run without error.

    2. Copy text in "Other Linker Flags" in new project to old project. Make old project to same new project.

    3. Check "Header Search Paths" too.

    0 讨论(0)
  • 2020-11-28 18:41

    If the project uses CocoaPods be aware to always open the .xcworkspace file instead of the .xcodeproj file.

    0 讨论(0)
  • 2020-11-28 18:41

    If you have multiple targets in your project, Cocoapods may have only integrated itself well with just one of them.

    I had to manually link to libPods.a in "Link Binary With Libraries" for each additional target I had.

    libPods.a in my list of frameworks

    0 讨论(0)
  • 2020-11-28 18:42

    Had this problem as well. Something was wrong with my CocoaPods installation. No pods other than KIF were installing properly. I followed the comments on this thread to be of help.

    Basically, I needed to ensure that Build Active Architectures Only settings for both my project and the Pods project were equal.

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