Xcode控制台消息:One of the two will be used. Which one is undefined.

前言:

        在使用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!


Podfile

2、检查Other Linker Flags

删除-l"AFNetworking"  (会有这个的原因主要是Podfile 没有添加 use_frameworks!)

3、使用@import 引入框架


导入框架

4、运行项目,完美解决控制台信息

参考:

(Pod造成的)One of the two will be used. Which one is undefined.

Pod造成的)One of the two will be used. Which one is undefined.

你可能感兴趣的:(Xcode控制台消息:One of the two will be used. Which one is undefined.)