使用cocoapods导入第三方出现这样的问题

[!] The `TestDemo [Debug]` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation

    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

编译报错:

ld: library not found for -lPods-AFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)

在 HEADER_SEARCH_PATHS 加入了 $(inherited) 还是报错。

如何解决这个问题,跪谢!

阅读 5.3k
2 个回答

你打开的是不是不是.cxworkspace?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题