当前位置:   article > 正文

[Error]SDK does not contain ‘libarclite‘ at the path ; try increasing the minimum deployment target_clang: error: sdk does not contain 'libarclite' at

clang: error: sdk does not contain 'libarclite' at the path

运行项目时报错

报错:

Build target FMDB of project Pods with configuration Debug
/Users/quark/Documents/ati-teas-prep/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 12.0 to 17.2.99. (in target 'FMDB' from project 'Pods')

clang: error: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target

修复:

Pod导入框架时,要为对应target指定平台和版本platform :ios, '14.0',再指定一下最低部署目标IPHONEOS_DEPLOYMENT_TARGET=14.0,重新pod install就可以了不用去pods列表一个一个框架去修改最低支持14。

  1. target 'ATITEAS' do
  2. platform :ios, '14.0'
  3. # Comment the next line if you don't want to use dynamic frameworks
  4. use_frameworks!
  5. # Pods for ATITEAS
  6. pod 'Moya'
  7. pod 'SwiftyStoreKit', '0.16.1'
  8. pod 'FMDB'
  9. end
  10. post_install do |installer|
  11. installer.pods_project.targets.each do |target|
  12. target.build_configurations.each do |config|
  13. config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
  14. end
  15. end
  16. end

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/787598
推荐阅读
相关标签
  

闽ICP备14008679号