Hello! I've created an issue on Github at <https:/...
# native
b
Hello! I've created an issue on Github at https://github.com/gradle/gradle/pull/29227 Gradle relies on a flag
--show-sdk-platform-path
for
xcrun
which as been removed at some point on some machine I suppose? It's rather difficult to find info about it online. The fix is to use the flag
--show-sdk-path
instead. I'm puzzled as to why I cannot find more of that error online. In any case, the only fix I have now is to run
export SDKROOT=$(xcrun -sdk macosx --show-sdk-path)
before running anything relying on
MacOSSdkPlatformPathLocator
for it not to break. I'm hoping this could get addressed within Gradle when possible.
d
That’s a great issue. The PR against Gradle core plugin is one way to fix this. We could probably fix this with some toolchain-fu but it would be complicated. If you are block we can look into it, but a Gradle patch is the better option.
b
A Gradle patch I'd apply locally?
d
It would probably be a plugin that configure the
toolChains
model. Of course, if the flag breaks Gradle during its tool chain fingerprinting then the only way around it is to create a script that would stand for
xcrun
and use the right flag. At the moment, it’s the best that can be done.