-
-
Notifications
You must be signed in to change notification settings - Fork 36
Problem with the compilation #18
Comments
Can you confirm that when you used the template, you used the correct branch of this project for the version of Python you were using? The master branch (until very recently) was only compatible with Python 3.4; there have been significant API changes in CPython between 2.7, 3.4 and 3.5. Can I get you to retry with the 2.7 or 3.5 branch (for the corresponding version of Python)? |
My bad, I had well the corresponding file but I didn't do the correct cookiecutter command line. I had forgotten the "--checkout 2.7" part So far so good, it's now compiling without problems. However the app crash when I run it. I got this message error :
the name of my app and directory is "python_recog" Do you have any idea ? Thank you again :) |
Looks like there's a problem finding the Python entry point. What does the directory structure under the "app" folder of the template look like? The template is expecting to find:
and it's the app.py that will be executed at startup. If If you want to use a different entry point, you can modify main.m and provide a different path. |
Okey thank you ! Problem solved. I changed the path ! Thank |
Correct - you need to create a subclass of NSObject called PythonAppDelegate - but that class can be native ObjC, or Python - it's up to you. |
@freakboy3742 I believe this can be closed. |
Hi,
I did everything you mentioned about the installation of the python-ios-template.
However, once I click on the xcodeproj file, and want to build I got some errors that I'm not able to solve. I just show you some errors I have :
I have Python 2.7.12 and Python 3.5. I tried with both and got the same things. I precise that I have added all the framework inside the directory.
Could you please help me ?
Thank,
Regards
The text was updated successfully, but these errors were encountered: