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

Kivy-ios and Xcode 15 build error Command PhaseScriptExecution failed with a nonzero exit code #926

Open
SubdudedCrane651 opened this issue May 22, 2024 · 6 comments

Comments

@SubdudedCrane651
Copy link

I am able to create an android app with no problems using buildozer, but can not for the life of me create a working iOS app. I even invested in a Mac M1 mini that put me back a lot of money, Whatever back to the issue, I followed the documentation to use kivy-ios with toolchain. Furthermore, I was able to make an Xcode project without errors, unlike buildozer which would give me Command failed: ['/Users/richard/Documents/Python/.venv/bin/python3', 'toolchain.py', 'build', 'python3', 'kivy']
. Once I loaded the project I made with toolchain create HelloWorld ~/Documents/Python/HelloWorld it gives me with the build error after compiling main,py in Xcode 15 an
Showing Recent Issues
Command PhaseScriptExecution failed with a nonzero exit code
Never get further, and it's just the HelloWorld kivy program, nothing complicated.

Versions

  • Python :3.11
  • MacOS version : Mac M1 mini (Sonoma 14.4.1)
  • XCode Version :15
  • Cython version :latest which is compatible

Any help would be greatly appreciated, need a working iOS app for a client who is very anxious,

Tried toolchain create HelloWorld

Open Xcode file and build it in Xcode to run the app to test.

Tried it also with buildozer ios debug to get an app in the bin file.
-->

@cederom
Copy link

cederom commented May 23, 2024

You need to provide a build log so we can see where is the problem, at what build stage, what was the command, and why it failed :-)

I also encounter buildozer build fail at the last stage IPA creation (after signing). Just got into that. XCode 15 changed a lot of stuff, maybe shell tools also changed syntax. Will report a new issue when I know whats going on exactly :-)

@DanyloRomanov
Copy link

facing the same issue for already existing application with Xcode 15+ on M2.
Here is the log. Tried:

  • downgrading Xcode from 15.4 to 15.
  • reinstalling dependencies
  • updating rozetta to rozetta 2
    log_share.txt

@misl6
Copy link
Member

misl6 commented Jun 8, 2024

@DanyloRomanov ,

Compiling '/Users/danilromanov/Desktop/git_repos/kivy_ios_git/kivy-ios/artbody-ios/YourApp/dist/root/python3/share/pyobjus-examples/pointer_to_type.py'...

***   File "/Users/danilromanov/Desktop/git_repos/kivy_ios_git/kivy-ios/artbody-ios/YourApp/dist/root/python3/share/pyobjus-examples/pointer_to_type.py", line 52

    print sel

    ^^^^^^^^^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

Is the dist folder meant to be there or is it some trash from a previous build? (YourApp should only contain your code and assets, not kivy builds)

@DanyloRomanov
Copy link

DanyloRomanov commented Jun 13, 2024

@misl6 thank you for the answer. I have tried to delete the dist folder and it did not work this way as it is generated by toolchain build together with the build folder. Is there a way to build project without dist folder? Maybe you have some examle?

@DanyloRomanov
Copy link

@misl6 Excluded all dist and build files from the build and not it is working fine. Thanks

@AlePerla
Copy link

@DanyloRomanov can you explain how you excluded them from dist and build? I am experiencing the same issue but couldn't find where to do it

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

No branches or pull requests

5 participants