Xcode: ld: library not found for -lAFNetworking

前端 未结 13 653
野趣味
野趣味 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:49

    I had this issue while using fastlane with a ReactNative project. I had added a dependency that required cocoapods.

    My Fastfile looked like this:

    ...
    gym(
      scheme: "AppName",
      project: "./ios/AppName.xcodeproj"
    )
    ....
    

    And had to change it to the workspace like this:

    ...
    gym(
      scheme: "AppName",
      workspace: "./ios/AppName.xcworkspace"
    )
    ...
    

提交回复
热议问题