升級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