Error file not found:/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a

问题:

升级到XCode 14.3之后,编译Minimum Deployments为iOS 11以下项目报错----

Error: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a

原因:

Xcode 14仅支持构建iOS 11的部署目标。libarclite是旧版本操作系统所必需的,但现在已经过时了,并且文件在XCode 14.3中已经被删除。

方案:

1、苹果推荐:修改支持目标到iOS 11及以上

注意:如果使用pod,pod中的第三方框架也需要修改,在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'] = '11.0'
               end
          end
   end
end

在终端cd到项目目录,执行pod install --repo-update(或者删了项目中pod相关文件直接pod install)

2、在旧版XCode中找到文件再加回去

路径:> /Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值