Forum
    • Categories
    • Register
    • Login

    Setting a projects minimum MacOS version?

    Scheduled Pinned Locked Moved General Questions
    2 Posts 2 Posters 32 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • OrvillainO
      Orvillain
      last edited by

      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.15
      

      So 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!

      Musician - Instrument Designer - Sonic Architect - Creative Product Owner
      Crafting sound at every level. From strings to signal paths, samples to systems.

      SifresS 1 Reply Last reply Reply Quote 0
      • SifresS
        Sifres @Orvillain
        last edited by

        @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:
        Bash

        cd "$(dirname "$0")"
        "$HISE_PATH/tools/Projucer/Projucer" --resave AutogeneratedProject.jucer
        xcodebuild ...
        

        Add the patch between the resave and the xcodebuild call:
        Bash

        sed -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?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        13

        Online

        2.3k

        Users

        13.6k

        Topics

        118.5k

        Posts