-
Notifications
You must be signed in to change notification settings - Fork 26.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macOS Sonoma] Builds failing with error: DT_TOOLCHAIN_DIR cannot be used to evaluate LD_RUNPATH_SEARCH_PATHS, use TOOLCHAIN_DIR instead #131527
Comments
Filing this issue just for searchability, the underlying issue is a CocoaPods issue: Fix for the issue is out here: |
On our end, once this lands in CocoaPods, we may need to bump our minimum CocoaPods version. |
The |
Looks like the fix has been merged on the CocoaPods end. We'll probably want to wait for a release to be published before closing this. (relevant comment) |
@cbracken For anyone that comes after me, update your post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end becomes post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
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 Tested and working with
|
You Can Change Xcode CommandLine Version |
Individual users can do this temporarily, but ideally we'll want to wait until CocoaPods releases. This is a CocoaPods issue that we shouldn't be forcing our users to workaround. Keeping open until they release a new version though. It seems likely we'll need to update our |
Perhaps we should close this one in favor of #133584, which explains more clearly what has already been done and what still needs to be done? |
Yep - let's do it! |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
When building macOS Flutter apps on macOS 14 (Sonoma), a build failure occurs during the Cocoapods phase, with the following error output:
Doctor output
The text was updated successfully, but these errors were encountered: