Hi, I updated to ios26 and macosx 26 very recently. iOS seems to be building fine, which is good. But mac versions seem to fail now:
lime test mac
now gives:
xcodebuild: error: SDK “macosx26” cannot be located.
but the command:
xcodebuild -showsdks
lists:
macOS SDKs:
macOS 26.0 -sdk macosx26.0
macOS 26.0 -sdk macosx26.0
This is confirmed on 2 different machines. Im using up to date lime and hxcpp. Anyone else seeing this?
Thanks,
Greg
Hi Greg,
This is something that @joshtynjala ran into recently, you can temporarily work around this by setting the flag -DMACOSX_VER=26.0 in your build, or you can use this patched version of hxcpp: BuildTool: Fix xcodebuild: error: SDK macosx26 cannot be located. by joshtynjala · Pull Request #1260 · HaxeFoundation/hxcpp · GitHub
-Tobi
1 Like
Ah, that’s great thanks for the quick reply
I am running the samples and I am completely new to Haxie.
Specifically I am running the HelloTriangle sample via: openfl test mac .
Can you point me to what I have to change in the samples to include this -DMACOSX_VER=26.0 flag?
thanks
CW
Bink
December 31, 2025, 12:29am
6
I’m not on the OSX ecosystem to test, but might you try:
openfl test mac -DMACOSX_VER=26.0
You could also try grabbing @joshtynjala 's patched version of hxcpp which specifically addresses this issue:
haxelib git hxcpp https://github.com/joshtynjala/hxcpp.git fix/mac-dot-zero-sdk
That’ll download that version, and set it as your current default. Use haxelib list to see what’s installed, and the currently active version of each lib.
Later on, if you’d like to revert back to the official release, use (changing the version number accordingly):
haxelib set hxcpp 4.3.2
1 Like