VCVRack / rack-plugin-toolchain

53 stars 12 forks source link

Is the exact version of MacOX SDK required? #34

Open hires opened 10 months ago

hires commented 10 months ago

I used the osxcross tools on my Macbook Air M1 running the latest macOS and XCode, and it produced the following file: MacOSX14.0.sdk.tar.xz

But the instructions ask for MacOSX11.1.sdk.tar.xz specifically. I am going ahead and building the toolchain anyway, but want to make sure that my plugins will be acceptable if I build them with a newer SDK version. I see no way of conjuring my Mac to go back in time and produce an older version.

cschol commented 10 months ago

It depends on what you are doing. The official Rack build system uses the 11.1 SDK for compatibility reasons. If you provide binaries for a closed source plugin, you should use the 11.1 SDK. If you are just compiling for yourself before submitting the source to be compiled with the Rack build system, you can use a newer version of the SDK, but any issues you encounter are up to you to resolve. We do not provide any support for issues encountered with the Rack Plugin Toolchain that doesn't use the recommended SDK version.

If I remember correctly, you do not have to install the older version of Xcode to extract the SDK. Extraction on macOS requires Xcode installation, but the extraction without installation works on GNU/Linux.

partvishegy commented 7 months ago

Hi, I used the method with .xip file of Xcode 12.4, and the ./gen_sdk_package_pbzx.sh ../Xcode_12.4.xip but I could only generate MacOSX13.3.sdk.tar.xz. I concluded it depends on the version of osx and not only on xcode. Is there a way to generate 11.1 If I only have access to a mac with this later version of osx?

EDIT: I thought i had to do the extraction on mac. tried it on linux and worked well, produced MacOSX11.1.sdk.tar.xz.