Xcode控制台消息:One of the two will b
2018-05-16 本文已影响31人
十里桃花终是你
前言:
在使用Pod引入AF 之后遇到 “One of the two will be used. Which one is undefined.” 这个报错,百度了一大波(别问我为啥不谷歌)完美解决。
报错信息:
One of the two will be used. Which one is undefined.
解决方法:
1、检查podfile 添加 use_frameworks!

2、检查Other Linker Flags
删除-l"AFNetworking" (会有这个的原因主要是Podfile 没有添加 use_frameworks!)
3、使用@import 引入框架

4、运行项目,完美解决控制台信息
参考:
(Pod造成的)One of the two will be used. Which one is undefined.