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

Problem when uploading binary to AppStore. #93

Closed fangyuxi closed 4 years ago

fangyuxi commented 4 years ago

2351591984961_ pic_hd 2361591985009_ pic_hd

I know this is because Python.Framework is included in the copy bundles resources, but if I don’t do this, then there is no way to specify the root directory of the python (such as the code screenshot in the example image).

Can I include the source code of python to run in the project, but not the compiled python binary?

Thank you Best Regards

ColdGrub1384 commented 4 years ago

Instead of mainBundle, use this to get the path of a resource inside a framework: https://developer.apple.com/documentation/foundation/nsbundle/1411929-bundlewithidentifier?language=objc

freakboy3742 commented 4 years ago

I don't know where you're getting a Python.framework from, but it wasn't produced by recent builds of this project. If you're using an older build (such as the 2.7 build), those configurations are no longer supported - partly because they weren't compatible with the App Store, but also because Python 2 has reached End Of Life and is no longer supported.