Xcode14.3运行老项目报错

451 阅读1分钟

报错信息

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

clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方案A

将Xcode最低可运行版本改成11.0.如下所示:

image.png

解决方案B

在podfile中添加如下代码,配置最低版本为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