美文网首页
xcode14.3 编译报错 ld: file not foun

xcode14.3 编译报错 ld: file not foun

作者: 喵喵粉 | 来源:发表于2023-05-19 16:37 被阅读0次

xcode14.3编译报错

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)
  • arc文件夹

链接: https://pan.baidu.com/s/1WJIvp3fazl64whyBvZ9vHg?pwd=1111
提取码: 1111

放到

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib

或者

  • Podfile加上,重新pod install
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

报错

building file list ... rsync: link_stat "/xxx/AFNetworking.framework" failed: No such file or directory 

Xcode中全局替换,pod install之后也需要重新替换

    source="$(readlink "${source}")"
-->
    source="$(readlink -f "${source}")"

相关文章

网友评论

      本文标题:xcode14.3 编译报错 ld: file not foun

      本文链接:https://www.haomeiwen.com/subject/ijarsdtx.html