IOS 17 Xcode 15.0 (15A240d) BUG 2023-09-20

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

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容