Xcode: ld: library not found for -lAFNetworking

前端 未结 13 643
野趣味
野趣味 2021-02-02 06:24

Because of this one reason, build always fails...Any ideas about what I could try?

EDIT: the solution is to open the xcworkspace instead of the xcproject!

13条回答
  •  长发绾君心
    2021-02-02 07:03

    I Had this Issue several Times with PODS Libraries.

    Here is something you can Try:

    1. Run pod cache clean --all and pod install again.

    2. Check your Header Search Paths and Library Search Paths, Remove all entries and place $(PROJECT_DIR) in recursive mode and $(inherited) as a Second Entry

    3. Go to your target Build Settings -> Other linker flags -> double click . Add $(inherited) to a new line.

提交回复
热议问题