kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
759 stars 238 forks source link

Build iOS project always fails at 2nd script #713

Closed saminapoleon closed 2 years ago

saminapoleon commented 2 years ago

Hi All,

      build ios project always fails with below issue:

Listing '/Users/sami/kivy-ios/my-p-05-ios/YourApp/venv/share/glew'... Listing '/Users/sami/kivy-ios/my-p-05-ios/YourApp/venv/share/glew/bin'... Listing '/Users/sami/kivy-ios/my-p-05-ios/YourApp/venv/share/sdl2'... Listing '/Users/sami/kivy-ios/my-p-05-ios/YourApp/venv/share/sdl2/bin'... Command PhaseScriptExecution failed with a nonzero exit code

the script as below

/Users/sami/kivy-ios/dist/hostpython3/bin/python -m compileall -f -b "$PROJECT_DIR"/YourApp

any ideas how to solve this issue?

Thanks

misl6 commented 2 years ago

Hi @saminapoleon , can you post the whole build log?

saminapoleon commented 2 years ago

Hi @misl6

Build target my-p-05_2022-06-05T00-41-39.txt

misl6 commented 2 years ago

This is a failure that happens during package time (On XCode or on the CLI), and not during the toolchain build ... / toolchain create .. I am right?

saminapoleon commented 2 years ago

@misl6

yes this happened after toolchain creation when I press play to from Xcode to build IOS

misl6 commented 2 years ago

Looks like is including your venv folder, which should not be added to the iOS package.

In XCode, under the "Build Phases" Tab , there's a (Run script phase) rsync command, which is syncing your app folder.

If you want to keep your venv folder, without syncing it into the package, you should exlude it via --exclude into this rsync command.

I'm closing the issue as a support one, but feel free to join us on Discord!

github-actions[bot] commented 2 years ago

👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.

If you're having trouble installing or using kivy-ios, maybe you could be interested to installation and requirements.

Let us know if this comment was made in error, and we'll be happy to reopen the issue.

saminapoleon commented 2 years ago

but if I excluded another issue will appear could not open main.py

saminapoleon commented 2 years ago

@misl6

after excluding

my-p-06[5449:183385] Running main.py: (null) 2022-06-05 05:39:35.695339-0700 my-p-06[5449:183385] Unable to open main.py, abort. 2022-06-05 05:39:35.701519-0700 my-p-06[5449:183385] Leaving

saminapoleon commented 2 years ago

Dears,

 the issue not solved yet...

thanks