今天在项目中引入AFNetworking。
Podfile的内容
出现了一个错误
-
Use the
$(inherited)
flag, or -
Remove the build settings from the target.
-
Use the
$(inherited)
flag, or -
Remove the build settings from the target.
-
Use the
$(inherited)
flag, or -
Remove the build settings from the target.
-
Use the
$(inherited)
flag, or -
Remove the build settings from the target.
大衣就是target的设置覆盖了 pod的设置。
这个警告会导致再代码编译的时候出现错误
会导致项目在运行时出现_OBJC_CLASS_$_某文件名", referenced from:的问题
解决方法:
在Build Settings -> Other linker flags 中添加$(inherited)
添加完成之后运行
pod update
警告消失!!!