Xcode 14.3版本运行项目报错

2023-04-06  本文已影响0人  iOS虞
image.png

在错误信息中发现Xcode中已经移除了arc的目录

解决:设置最低版本iOS 11.0,可以根据第三库版本来调整,我设置的是15.0,因为我使用的一个第三方使用了iOS15.0的语法
在Podfile文件中加上:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
    end
  end
end
上一篇 下一篇

猜你喜欢

热点阅读