Python-Apple-support icon indicating copy to clipboard operation
Python-Apple-support copied to clipboard

Catalyst Support

Open JonasGessner opened this issue 3 years ago • 3 comments

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

JonasGessner avatar Apr 11 '21 12:04 JonasGessner

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?

freakboy3742 avatar Apr 11 '21 23:04 freakboy3742

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.

JonasGessner avatar Apr 12 '21 07:04 JonasGessner

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.

freakboy3742 avatar Apr 13 '21 00:04 freakboy3742