升级Xcode 真机ios17运行 报错
文章发布时 已经能真机运行
问题1:
DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead
引用文章解决问题
https://blog.csdn.net/alinagebaba/article/details/132470365
问题2:
SDK does not contain 'libarclite' at the path '*******/*******/libarclite_iphoneos.a'; try increasing the minimum deployment target
引用文章解决问题
https://blog.csdn.net/woashizhangsi/article/details/130178931
podfile组合结果
source 'https://github.com/CocoaPods/Specs.git'
platform :ios,'14.1'
target'XXXXX'do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for MiFish
pod'XXX'
pod'XXX'
pod'XXX'
pod'XXX'
pod'XXX'
end
post_installdo|installer|
installer.aggregate_targets.eachdo|target|
target.xcconfigs.eachdo|variant, xcconfig|
xcconfig_path = target.client_root + target.xcconfig_relative_path(variant)
IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR","TOOLCHAIN_DIR"))
end
end
installer.generated_projects.eachdo|project|
project.targets.eachdo|target|
target.build_configurations.eachdo|config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] ='13.0'
end
end
end
installer.pods_project.targets.eachdo|target|
target.build_configurations.eachdo|config|
ifconfig.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference
xcconfig_path = config.base_configuration_reference.real_path
IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR","TOOLCHAIN_DIR"))
end
end
end
end