当前Xcode版本14.2,测试机iOS版本16.4, 结果出现提示:Failed to prepare the device for development,经过Clean,重装都无效,最后发现其他人也有类似的问题
https://developer.apple.com/forums/thread/714388
PS:首先把升级之前的arc文件复制出来,arc文件的目录如下
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib
一、升级xcode版本,更新到xcode14.3
升级完xcode版本以后,运行以前的项目,就报错,提示错误 File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
二、下载arc文件或者找低版本的xcode同样的路径下复制出来。这里提供两个下载地址:
https://drive.google.com/file/d/1yChsJfm5Bi3f7_yw7ihCWS4wM-Ac8H-k/edit
https://github.com/kamyarelyasi/Libarclite-文件
三、前往如下路径,并创建arc文件,把.a文件复制进去,clean一下xcode运行即可
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib