beeware / Python-Apple-support

A meta-package for building a version of Python that can be embedded into a macOS, iOS, tvOS or watchOS project.
MIT License
1.11k stars 160 forks source link

Catalyst Support #117

Open JonasGessner opened 3 years ago

JonasGessner commented 3 years ago

The makefile doesn't seem to support Catalyst. It would be nice to have support for this target!

freakboy3742 commented 3 years ago

Thanks for the suggestion - but I'm not even sure what this would mean. Python-Apple-support is a library that you would include in your iOS project... unless I'm missing something, it shouldn't matter whether your project is a Catalyst project or a Cocoa project - you link in the Python support library, and invoke it as required.

What exactly is it that you think needs to be added?

JonasGessner commented 3 years ago

Yes but to be able to link the python library when building an app for catalyst the library itself needs to be built specifically for catalyst as well. iOS or macOS libraries can't be used in catalyst builds.

To build a library for catalyst you have to build against the macOS SDK and specify a target in the form x86_64-apple-ios13.0-macabi, with the arch and iOS version adjusted as needed.

freakboy3742 commented 3 years ago

Ah - I didn't realise Catalyst was based on an entirely different ABI.

Catalyst isn't a huge priority for me personally, but if you wanted to add another target platform to support Catalyst, I wouldn't object to a PR that added it.