marazmone
09/20/2023, 9:55 AM"error: DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead (in target 'FirebaseAnalytics' from project 'Pods')"
In the ios application, I can fix it with post_install in the PodFile. But FirebaseAnalytics is in a shared module and I don't know how to fix it. Maybe somebody knows about it, thanks for helpingxiaobailong24
09/20/2023, 12:09 PMNicolas Demoisson
09/20/2023, 12:42 PMpost_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# Fix a bug since xcode 15. It should be fixed in Cocoapods 1.13.0 <https://github.com/CocoaPods/CocoaPods/pull/12009>
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 of fix.
end
end
end
marazmone
09/21/2023, 8:06 AM