-
Notifications
You must be signed in to change notification settings - Fork 2.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
Xcode 15 Beta 5 fix: Fix build failed due to DT_TOOLCHAIN_DIR
#12009
Conversation
Also update spec for test CocoaPods/cocoapods-integration-specs#345 |
You beat me on time @marcuswu0814 , I was going to raise the same PR! Thank you, this is needed ASAP. It completely broke our CI and I am pretty sure we won't be alone. |
@dnkoutso Submodules already updated, please take a look, thanks. |
I'm not sure is testing failed due to my change? Could someone please help me to figure it out. 😕 |
@marcuswu0814 to me, it looks like you've changed Reachability spec, is it needed? |
Hi @bohdanpodvirnyi, thanks so much for your help, I update the submodule with wrong command, now revert no need change. |
@dnkoutso check pls |
@marcuswu0814 still failing, but I don't get where the issue is |
There is still a diff in integration specs -LIBRARY_SEARCH_PATHS = $(inherited) "$(PLATFORM_DIR)/Developer/Library/Frameworks" "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" "${PODS_CONFIGURATION_BUILD_DIR}/MixedPod-library-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/ObjCPod-library-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftPod-library-iOS" /usr/lib/swift
+LIBRARY_SEARCH_PATHS = $(inherited) "$(PLATFORM_DIR)/Developer/Library/Frameworks" "${PODS_CONFIGURATION_BUILD_DIR}/MixedPod-library-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/ObjCPod-library-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftPod-library-iOS" "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift |
@dnkoutso Seems a different path order cause the failed, but I'm not sure it relative with my change, should I update integration spec again? |
I create another PR for fix this, I'm pretty not sure the order of |
This is because of the As far as the ordering of the |
Hi @justinseanmartin, thanks for your explanation, and now the integration specs is update to date, please help to rerun the CI if you can. 🙏 |
Same issue! |
I found the solution 😃
It's updated now 👍 |
You guys not having this issue?? |
Try this!!
|
getting same issue on macOS(darwin) |
Didn't work for me :( |
Due to changes in Xcode 15, several variables such as `DT_TOOLCHAIN_DIR` have been eliminateed in favour of others such as `TOOLCHAIN_DIR`. This broke CocoaPods support under Xcode 15, as reported in: CocoaPods/CocoaPods#12012 @vashworth worked around this in Flutter in: flutter#132803 The CocoaPods issue was resolved by the following PR to their repo: CocoaPods/CocoaPods#12009 and was released in CocoaPods 1.13.0. Also switches from an if-else chain to a switch for CocoaPodsStatus handling. Issue: flutter#133584 Related: flutter#132755
Upgarade Cocoapods v1.13.0 brew command
without brew
|
This worked for me, thank you very much!
|
Issue Solved by simple One Command
|
But only if you have CocoaPods 1.13.0 installed, which was just released a few days ago and explicitly addresses this issue in the release notes. So would everyone here please stop making it appear as all the posters before were just too stupid to run that command, as running that command two weeks ago or any time earlier fixed absolutely nothing. This is is now fixed with the latest version as @alok2811 pointed out 5 days ago. |
Please create a new issue for that. Your problem is not related to the problem that this issue here was all about and thus people having a similar problem or the solution won't ever find your report here. This issue is only about builds failing because |
This is needed on Xcode 15, at least once certain packages are pulled in. (In particular, firebase_core, which I have in a draft branch for handling notifications.) Upstream issue thread: CocoaPods/CocoaPods#12009
Im still having this issue with cocoapod v1.14.2 and XCode15.0.1 . I have a work around with a bash script I wrote that will replace |
This is what I did and it's worked for me Whenever you update the XCode, you need to update Cocoapods
clean the the installed packages using the command “
That's it. My Xcode version: |
That's what he did, he said he had version v1.14.2 installed what at the time of his posting was the latest released version. |
If you still have this issue with 1.14.3, it may be related specifically to your project or setup, since in general this issue is fixed for most people, so you should probably create a new issue and provide as much detail as you can about your setup. You can refer to this issue in your report, so people can find your new issue just in case they accidentally end up here. |
Due to changes in Xcode 15, several variables such as `DT_TOOLCHAIN_DIR` have been eliminateed in favour of others such as `TOOLCHAIN_DIR`. This broke CocoaPods support under Xcode 15, as reported in: CocoaPods/CocoaPods#12012 @vashworth worked around this in Flutter in: #132803 The CocoaPods issue was resolved by the following PR to their repo: CocoaPods/CocoaPods#12009 and was released in CocoaPods 1.13.0. Also switches from an if-else chain to a switch for CocoaPodsStatus handling. Related: #133584 Related: #132755 ## Pre-launch Checklist - [X] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [X] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [X] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [X] I signed the [CLA]. - [X] I listed at least one issue that this PR fixes in the description above. - [X] I updated/added relevant documentation (doc comments with `///`). - [X] I added new tests to check the change I am making, or this PR is [test-exempt]. - [X] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [Features we expect every widget to implement]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
Fix build failed on Xcode 15 Beta 5, also try on 14.3.1 and worked.