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

Support Mac Catalyst targets #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

coolbluewater
Copy link

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.

@simlay
Copy link
Owner

simlay commented Jul 13, 2022

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

@coolbluewater
Copy link
Author

coolbluewater commented Jul 13, 2022

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.

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

Successfully merging this pull request may close these issues.

2 participants