升级Xcode15、iOS17遇到的问题总结
Xcode15真机运行正常 模拟器iphone15(iOS17)运行报错:
问题1:
xxx/Pods/Target Support Files/Pods-xxx/Pods-xxx-frameworks.sh: line 128: ARCHS[@]: unbound variable Command PhaseScriptExecution failed with a nonzero exit code
解决:模拟器跑报错xxx/Pods/Target Support Files/Pods-xxx/Pods-xxx-frameworks.sh: line 121: ARCHS[@]: unbound variable
解决办法:
在Target-Build Settings-VALID_ARCHS(Excluded Architectures)中添加以下代码
EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64=arm64 arm64e armv7 armv7s armv6 armv8 EXCLUDED_ARCHS=$(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT))
然后再跑就可以了
2个地方
VALID_ARCHS
Excluded Architectures
如图:
问题2:
升级xcode 15 遇到 mixed objc xxx 问题,在在other link flags添加 -ld64 即可解决
其他问题可以参考://www.greatytc.com/p/5aa979df8ff0
https://blog.csdn.net/amaoatao/article/details/114021550?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1-114021550-blog-108723507.235%5Ev38%5Epc_relevant_default_base&spm=1001.2101.3001.4242.2&utm_relevant_index=4