Open divVerent opened 2 years ago
Also, would be nice to document how to even get the supported SDK versions - "just download the latest Xcode" does not work. Like, which Xcode has which SDK versions included?
The missing support for 12.3 was fixed in #344. It works fine for me in my use cases.
So I think the compile errors you're having might be due to actual incompatibility between your code and what MacOSX12.3 expects.
The problem seems to be that MacOS X expectation of clang and the clang used to compile are not aligned. A work around is to override NS_FORMAT_ARGUMENT(A) ( -DNS_FORMAT_ARGUMENT(A)=
or #define NS_FORMAT_ARGUMENT(A)
) to do nothing and this solve the problem. A better permanent fix would be better, but I do not have any understanding of how osxcross actually work.
To solve the problem, updating LLVM from v12 to v14 fixed it.
@tpoechtrager This can be closed as fixed by https://github.com/tpoechtrager/osxcross/pull/344.
I tried adding SDK 12.3 support like this:
This compiles and installs fine, but compiling stuff fails with errors like: