kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.71k stars 492 forks source link

xcodebuild: error: invalid option '-exportFormat' #559

Open Chao-Jen opened 6 years ago

Chao-Jen commented 6 years ago

When running "buildozer ios debug" to build the touchtracer example, I received the following error:

xcodebuild: error: invalid option '-exportFormat'

Here is the buildozer log. buildozer.txt

cruor99 commented 6 years ago

This may be a little late, but a workaround is that you can go straight to buildozer ios xcode once you reach this point, as the app has successfully built. You can then run it via xcode, package it etc.

GoBig87 commented 6 years ago

I've come across this issue too. The issue is that if you use newer xcode versions -exportFormat has been deprecated and it now uses an -exportOptionsPlist parameter that gets the export information from a plist file. The error is in https://github.com/kivy/buildozer/blob/master/buildozer/targets/ios.py from line 249 to 258. I'm looking into changing the xcode build commands to support xcode 9 and newer.

hackalog commented 5 years ago

I've been ignoring this error for so long, I almost forgot it was an error.

The options are: 1) ignore this step and have the user open up xcode (buildozer ios xcode) to finish the build, or 2) Convert the command to use -exportOptionsPlist, along with something to generate that PList

Which way to proceed? @cruor99 @tito any preferences?

Thong-Tran commented 5 years ago

Hi @hackalog, I already hard code in my fork, to be able to automatically create - update code and open XCode. Currently, buildozer ios xcode does not automatically create a project when it is called.

If you check it okay, I will create a pull request.