升級(jí)Xcode14.3后運(yùn)行報(bào)錯(cuò):
在鏈接庫(kù)的時(shí)候因?yàn)檎也坏届o態(tài)庫(kù)(libarclite_iphonesimulator.a/libarclite_iphoneos.a)而報(bào)錯(cuò)。利用訪達(dá)的前往文件夾功能快速來到報(bào)錯(cuò)信息中的目錄,發(fā)現(xiàn)連arc目錄都不存在,更不用說靜態(tài)庫(kù)文件。
解決方法
在Podfile文件中加上:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 11.0
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
end
升級(jí)Xcode14.3后打包報(bào)錯(cuò):
報(bào)錯(cuò)內(nèi)容:
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/810eba08-405a-11ed-86e9-6af958a02716/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
解決方法:
在Xcode項(xiàng)目目錄中進(jìn)入 Pods -> Targets Support Files -> Pods-項(xiàng)目名 -> Pods-項(xiàng)目名-frameworks.sh 中搜索source="$(readlink "${source}")"
,找到后將其替換為source="$(readlink -f "${source}")"
,然后清理項(xiàng)目重新打包