更新完Xcode14.3跑之前的带有Cocopod工程的项目会出现缺失libarclite_iphoneos.a的报错
File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
解决方案:
在podfile中新增
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
end
然后再pod install
你以为这样就结束了吗?
好家伙打包的时候又出幺蛾子了,会报以下错误:
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots
解决方案:
Pods文件下面,找到Pods-工程名-frameworks.sh,将这段代码进行修改,注意,后续pod install之后,都要再进行修改。
source="$(readlink "${source}")"
修改为:
source="$(readlink -f "${source}")"
网友评论