rack-plugin-toolchain icon indicating copy to clipboard operation
rack-plugin-toolchain copied to clipboard

Is the exact version of MacOX SDK required?

Open hires opened this issue 2 years ago • 2 comments

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.

hires avatar Oct 15 '23 15:10 hires

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.

  • You can find older versions of Xcode here: https://developer.apple.com/xcode/resources/
  • Download the .xip file of Xcode 12.4.
  • Run ./gen_sdk_package_pbzx.sh ../Xcode_12.4.xip to extract the SDK without installing the old version of Xcode.

cschol avatar Oct 15 '23 16:10 cschol

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.

partvishegy avatar Jan 15 '24 15:01 partvishegy