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/toolchain.py build kivy fails #259

Closed
JuanCarlosGrishka opened this issue Aug 9, 2017 · 3 comments
Closed

kivy-ios/toolchain.py build kivy fails #259

JuanCarlosGrishka opened this issue Aug 9, 2017 · 3 comments

Comments

@JuanCarlosGrishka
Copy link

JuanCarlosGrishka commented Aug 9, 2017

Hello! I've got some problems with packaging an iOS application.
On Kivy website is written:

$ git clone git://github.com/kivy/kivy-ios
$ cd kivy-ios
$ ./toolchain.py build kivy

But when I try I have:

MacBook-Air-Grishka:~ grishka$ kivy-ios/toolchain.py build kivy
Traceback (most recent call last):
File "kivy-ios/toolchain.py", line 200, in
class ArchSimulator(Arch):
File "kivy-ios/toolchain.py", line 205, in ArchSimulator
sysroot = sh.xcrun("--sdk", "iphonesimulator", "--show-sdk-path").strip()
File "kivy-ios/tools/external/sh.py", line 1021, in call
return RunningCommand(cmd, call_args, stdin, stdout, stderr)
File "kivy-ios/tools/external/sh.py", line 486, in init
self.wait()
File "kivy-ios/tools/external/sh.py", line 500, in wait
self.handle_command_exit_code(exit_code)
File "kivy-ios/tools/external/sh.py", line 516, in handle_command_exit_code
raise exc(self.ran, self.process.stdout, self.process.stderr)
sh.ErrorReturnCode_1:

RAN: '/usr/bin/xcrun --sdk iphonesimulator --show-sdk-path'

STDOUT:

STDERR:
xcrun: error: SDK "iphonesimulator" cannot be located
xcrun: error: SDK "iphonesimulator" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'iphonesimulator'

I have:
macOS 10.12
Xcode 8.3.3
Python 2.7.13


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@John-K
Copy link

John-K commented Aug 29, 2017

Use xcode to install the iphonesimulator. This article might be helpful to you.

@hackalog
Copy link
Contributor

I assume this can be closed. @JuanCarlosGrishka ?

@ChronoNinja
Copy link

I ran into this problem as well. The "fix" needs to be added as part of the instructions on the main markdown page for those of us building from a clean install of brew, kivy-ios etc.

Open Xcode. Go to Preferences. Go to Locations. Your command line tools drop down is likely empty. Click the drop down and select the version (for me there was only the most recent version). I was then able to go back into kivy-ios and finish the process.

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