Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the exact version of MacOX SDK required? #34

Open
hires opened this issue Oct 15, 2023 · 2 comments
Open

Is the exact version of MacOX SDK required? #34

hires opened this issue Oct 15, 2023 · 2 comments

Comments

@hires
Copy link

hires commented Oct 15, 2023

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
Copy link
Collaborator

cschol commented Oct 15, 2023

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.

@partvishegy
Copy link

partvishegy commented Jan 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants