uikit-sys icon indicating copy to clipboard operation
uikit-sys copied to clipboard

Support Mac Catalyst targets

Open coolbluewater opened this issue 2 years ago • 2 comments

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.

coolbluewater avatar Jul 11 '22 08:07 coolbluewater

I'm not sure how to actually run/test this. Do I need to build the stdlib for the macabi targets?

simlay avatar Jul 13 '22 16:07 simlay

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.

coolbluewater avatar Jul 13 '22 18:07 coolbluewater