Setting a projects minimum MacOS version?
-
I'm running into an issue with 'path' on MacOS. This is with some custom 3rd party C++ code I am using for a node. I get this error:
Error: 'path' is unavailable: introduced in macOS 10.15So I am guessing that somewhere the minimum Mac deployment target is probably 10.13 or something, and it needs to be set to 10.15. But I cannot see where to do this?
Sorry if this is a n00b question!
-
@Orvillain I ran into a similar issue with snex nodes and Hise defaulting to 10.11 and the compiler wanting to do 10.13+. Both are at the DSP networks compiler end.
I've got a feeling it's more Xcode related and dropping support for the 10.x range slowly.
Claude told me this but won't be able to test it till.tomorrow. Let me know if it helps.
Got it. So the flow would be:
Export/compile the DspNetwork DLL from HISE on Mac
The AutogeneratedProject.jucer gets regenerated with 10.11
Xcode refuses to build it
The fix is to patch the .pbxproj after Projucer has re-saved it but before Xcode compiles. The easiest place to hook this in is your batchCompileOSX.sh script in DspNetworks/Binaries/ — add the sed line right after the Projucer re-save step.
Open that file and it'll look something like:
Bashcd "$(dirname "$0")" "$HISE_PATH/tools/Projucer/Projucer" --resave AutogeneratedProject.jucer xcodebuild ...Add the patch between the resave and the xcodebuild call:
Bashsed -i '' 's/MACOSX_DEPLOYMENT_TARGET = 10.11;/MACOSX_DEPLOYMENT_TARGET = 10.13;/g' \ "Builds/MacOSX/$(ls Builds/MacOSX/ | grep .xcodeproj)/project.pbxproj"That way it survives re-exports automatically without touching HISE source. Want me to look at your actual batchCompileOSX.sh if you paste it here?