今天在项目中引入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
警告消失!!!
解决AFNetworking引入冲突
本文介绍了一种在项目中引入AFNetworking时遇到的构建设置冲突问题,并提供了解决方案,即通过在BuildSettings中添加$(inherited)来消除警告。
2275

被折叠的 条评论
为什么被折叠?



