Xcode 14.3编译报错

今天更新到Xcode14.3之后,发现有两个编译报错,如下:

1、/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a

2、Initializer does not override a designated initializer from it

搜了下,总结起来就一句话:Xcode14.3最低适配到iOS11

那就修改一下工程配置就好了,好像真不用做额外的工作,比如有人说要去Xcode14.2复制个文件过来。

最主要的还是Podfile修改,在Podfile顶部加入下面两句即可:

platform :ios, '11.0'

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
    end
  end
end

最后

对于原项目每次更新完Xcode都会有Error: ld: library not found for "-lstdc++.6"这种报错的,还是按之前的操作,去下载文件,放到对应的目录下,参考地址

猜你喜欢

转载自blog.csdn.net/king6188/article/details/131263620
今日推荐