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

2023-05-19  本文已影响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)

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

放到

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

或者

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}")"
上一篇下一篇

猜你喜欢

热点阅读