寫在最前
升到mac os 14 锹杈,xcode 14.3.1就不給用了两芳,必須使用xcode 15+摔寨,所以遇上問題必須解決,尤其是引入了一下小公司的SDK怖辆,更新不及時(shí)是复,所以慎重升級(jí)。
- 編譯報(bào)錯(cuò) DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead
Podfile最后加上以下代碼 并pod install
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end
installer.aggregate_targets.each do |target|
target.xcconfigs.each do |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.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if config.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
2.個(gè)推報(bào)錯(cuò)
升級(jí)到最新竖螃,并且只支持iOS 12+
3.友盟QQ分享報(bào)錯(cuò)
暫時(shí)無解淑廊,密切關(guān)注友盟官網(wǎng)