Open SubdudedCrane651 opened 6 months ago
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 :-)
facing the same issue for already existing application with Xcode 15+ on M2. Here is the log. Tried:
@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)
@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?
@misl6 Excluded all dist and build files from the build and not it is working fine. Thanks
@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
Instructions how to exclude from copilot:
To exclude directories like dist and build from your Xcode build, you can use the EXCLUDED_SOURCE_FILE_NAMES build setting. Here’s how you can do it:
Open your Xcode project.
Select your project in the Project Navigator.
Go to the Build Settings tab.
Click the + button at the bottom of the screen and select Add User-Defined Setting.
Name the new setting EXCLUDED_SOURCE_FILE_NAMES.
Expand the EXCLUDED_SOURCE_FILE_NAMES setting by clicking the arrow next to it.
In the Release configuration for this variable, add dist and build (separated by spaces).
This will ensure that the specified directories are excluded from the build process.
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
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. -->