Xcode: ld: library not found for -lAFNetworking

前端 未结 13 605
野趣味
野趣味 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 06:43

    I'm thinking on two possibilities:

    1) Install cocoapods-deintegrate project:

    $ gem install cocoapods-deintegrate
    

    Then run $ pod deintegrate, after that run $ pod install again. If it not works, then...

    2) You can try open your Pods project and create new scheme for the target that you need, in this case for AFNetworking.

    When the static library is created, then add it to your Frameworks references into your main project.

    Hope that helps.

提交回复
热议问题