最近升级到Xcode14.3发现运行真机报错
ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决办法:
(1)如果应用只需要在iOS11以上的设备上安装运行,只需更改项目版本最低配置
(2)如果项目需要在iOS9以上的设备上运行
在Podfile
文件中加上:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
打包在iOS13的手机上会崩溃
xcode14.2下载地址:https://developer.apple.com/download/all/?q=xcode%2014.2