1.DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead
解決方法:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
end
end
end
2.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
新版Xcode缺少arc文件
在老版本的Xcode下面路徑中找到arc文件夾怪瓶,復(fù)制到新版本的下面目錄中
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/
-
xxx pod庫(kù)報(bào)錯(cuò):Command SwiftCompile failed with a nonzero exit code
pod下找到對(duì)應(yīng)的庫(kù),把Compilation Mode, release下也改成Incremental
8781712716120_.pic.jpg -
Command PhaseScriptExecution failed with a nonzero exit code
項(xiàng)目中搜索:source="{source}")"
替換成:source="{source}")"
8791712716392_.pic.jpg
5.報(bào)錯(cuò)原因:iOS12上啟動(dòng)奔潰鲤拿,dyld: Library not loaded: /System/Library/Frameworks/SwiftUI.framework/SwiftUI
Referenced from: /var/containers/Bundle/Application/73E9CC61-6EBE-46DB-A786-4E47290284AD/xxx.app/xxx
Reason: image not found
項(xiàng)目中沒(méi)有使用SwiftUI 颅崩,但是在適配iOS 17時(shí)還是報(bào)這個(gè)問(wèn)題。
經(jīng)排查柏靶,SwiftUI 使用 LC_LOAD_WEAK_DYLIB冗美,而 Foundation 使用 LC_LOAD_DYLIB兽赁。這就是我們想要的袁余。
https://developer.apple.com/forums/thread/126506
解決方法:
路徑:Build Phases -> Linking Binary With Libraries 添加 SwiftUI.framework,并且status設(shè)置成Optional