使用cocoaPod导入第三方库报错

当使用CocoaPods导入第三方库时遇到`OTHER_LDFLAGS`设置冲突的问题,可以尝试两种解决方案:在目标设置中使用`$(inherited)`标志,或者删除目标中的构建设置。此外,还提供了具体步骤,包括删除静态库、手动导入第三方框架并添加链接器标志。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

    - Use the `$(inherited)` flag, or

    - Remove the build settings from the target.


[!] The `makeMoney [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-makeMoney/Pods-makeMoney.release.xcconfig'. This can lead to problems with the CocoaPods installation

    - Use the `$(inherited)` flag, or

    - Remove the build settings from the target.


1.在build Phases中,删除libPods-工程名.a 静态库;

2.导入在cocoaPods下载的第三方框架静态库(直接点击+即可);

3.在build setting中,添加-l"第三方框架名",如-l"AFNetworking"即可;


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值