1. 找不到libarclite_iphoneos.a文件
环境
XCode 14.3
问题描述
Xcode 14.2版本运行项目一切正常,升级到14.3版本后运行报错。
错误信息
解决方案
在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
参考资料
iOS问题记录 - Xcode 14.3版本运行项目报错_crasowas的博客-CSDN博客
2. Archive失败
环境
XCode 14.3
问题描述
Xcode 14.2版本运行项目一切正常,升级到14.3版本后可以运行,但打包报错。
错误信息
解决方案
在Pods/Target Support Files/Pods-xxxx
找到Pods-xxxx-frameworks.sh
文件,把source="$(readlink "${source}")"
改成source="$(readlink -f "${source}")"
。