SDK does not contain 'libarclite
2023-12-13 本文已影响0人
小冰山口
一个老OC
项目, 想导入一个swift
第三方
podfile
文件添加了一个use_frameworks!
, 然后重新pod install
, 就直接跑不起来了
报SDK does not contain 'libarclite' at the path
这个错误
在网上找到这个原因
libarclite was necessary for older OS versions, but is now obsolete. If you're encountering errors referring to this library, you should audit every target in your project for those that declare support for a minimum deployment target under iOS 11, and update them to at least iOS 11, or something more recent than that. You should not modify your Xcode installation to resolve this.
解决方法如下
在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