uikit-sys
uikit-sys copied to clipboard
Support Mac Catalyst targets
This PR adds initial support for Mac Catalyst targets (i.e. UIKit for Mac.)
Mac Catalyst allows iOS apps to run natively on macOS.
These targets end in -macabi
: x86_64-apple-ios-macabi
and aarch64-apple-ios-macabi
They require additional clang arguments -isystem
and -iframework
to be provided, which the code now does.
Note that the generated UIKit.h
has compiler errors, notably the duplicate Id
type definition as well as a few more that are unique to the Mac Catalyst sdk. Work in progress.
I'm not sure how to actually run/test this. Do I need to build the stdlib for the macabi
targets?
I'm not sure how to actually run/test this. Do I need to build the stdlib for the macabi targets?
Ah, yes.
cargo build -Z build-std=panic_abort,std --target x86_64-apple-ios-macabi
The panic_abort I think is needed when actually running macabi
targets but may not be needed here.