pod 倒入 老版本的三方框架后报错,比如 HandyJSON、MBProgressHUD
File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
Linker command failed with exit code 1 (use -v to see invocation)
版本兼容问题,修改方法: 在Podfile文件中 target 'x x x' do 的上方 添加以下代码后,重新执行 pod install
#编译兼容老版本 iOS11.0
post_installdo|installer|
installer.pods_project.targets.eachdo|target|
target.build_configurations.eachdo|config|
ifconfig.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f <11.0
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] ='11.0'
end
end
end
end
网友评论