library not found for…?

前端 未结 11 1488
我寻月下人不归
我寻月下人不归 2021-02-04 00:40

i added new framework(3rd party) and build.

Unfortunately, since the execution was not.

How do I solve this problem? The whole four nights were spent.:(

相关标签:
11条回答
  • 2021-02-04 00:56

    Use xcworkspace it will solve your problem.

    I also faced same once I install cocoa pods; Close and launch with xcworkspace again will solve your problem.

    0 讨论(0)
  • 2021-02-04 01:00

    Remove the reference to the library and add it again, it will solve the problem.

    0 讨论(0)
  • 2021-02-04 01:00

    If anyone is here looking specifically for the "library not found for -lPods" error, this was solved by opening the workspace instead of the xcodeproject. Searching google for library not found for -lPods without quotes turns this SO post as the first result, whereas if you wrap the search in quotes you'll get a post with the answer I just gave.

    0 讨论(0)
  • 2021-02-04 01:05

    Had the same problem and none of these answers fix it for me.

    Problem was Pod project in workspace had the following config:

    Build Active Architecture Only: YES
    

    For that reason, when I wanted to build for i386 (Simulator), XCode did not build Pods projects, so it could not meet dependencies. As soon as I changed it to NO it started working

    0 讨论(0)
  • 2021-02-04 01:05

    In Xcode goto select your project

    Build Settings -> Search Paths -> Library Search Paths set the path with /usr/local/lib

    note : make sure that you have added dylib at frameworks

    0 讨论(0)
  • 2021-02-04 01:06

    Make sure you have added the necessary search path for your library in Library Search Paths in Build Settings.

    There should be something like:

    ${SOURCE_ROOT}/Framework/Classes
    

    For .a files you need to set Target Dependencies in Build Phases in section. Just click "+" and add your .a file there.

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