ld: framework not found after pod install

前端 未结 5 1583
天涯浪人
天涯浪人 2020-12-17 15:09

I added Firebase libraries to my project, and then I got this error. When I compile it, Xcode can\'t find some directories. However, they are in the Pods directory.

相关标签:
5条回答
  • 2020-12-17 15:40

    For me i had to change/edit the schema and choose the new one.

    I had renamed my debug schema to debug(development) and that was causing my problem.

    Fix:

    1. Product > Edit Schema > Change Build Configuration

    What I did was create alternate Configurations and renamed my current one.

    0 讨论(0)
  • 2020-12-17 15:41

    Go To Project Target > Build Settings:

    Look for Search Paths > Framework Search Paths, delete all paths which you have been warned; then in Library Search Paths, delete all paths which you have been warned.

    0 讨论(0)
  • 2020-12-17 15:43

    I was facing same issue and I tried multiple things but still it was not working. I tried below.

    1. Using XCworkspace file
    2. Cleaned the project, restarted XCode, Mac
    3. Turned bitcode to No
    4. Deleted the search path for Framework, Library

    Finally the thing that worked is, deleting pod file and re-creating pod file. It worked as magic!

    P.S.: This is very generic error and so same solution may not work for all.

    0 讨论(0)
  • 2020-12-17 15:58

    In my case I just had to go to Edit Scheme > Run and Reselect "None" as Executable.

    0 讨论(0)
  • 2020-12-17 16:04

    Make sure you are opening the workspace file and not the project file. I was receiving the same error and realized I was using the project not the workspace.

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