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

./Scripts/bootstrap.sh return KeyError #288

Closed
codeskyblue opened this issue Mar 4, 2020 · 1 comment
Closed

./Scripts/bootstrap.sh return KeyError #288

codeskyblue opened this issue Mar 4, 2020 · 1 comment

Comments

@codeskyblue
Copy link

./Scripts/bootstrap.sh
Fetching dependencies
Traceback (most recent call last):
  File "<string>", line 1, in <module>
KeyError: 'devices'
@KazuCocoa
Copy link
Member

What the result of xcrun simctl list -j devices?

The script runs below line. If the JSON output has no devices, the error occures.

xcrun simctl list -j devices | python -c "import sys,json;print(' '.join(map(lambda x: x[0], filter(lambda x: len([y for y in x[1] if y.get('availability') == '(available)' or y.get('isAvailable')]) > 0, json.load(sys.stdin)['devices'].items()))))"
{
  "devices" : {
    "com.apple.CoreSimulator.SimRuntime.tvOS-13-2" : [
      {
        "state" : "Shutdown",
        "isAvailable" : false,
        "name" : "Apple TV",
        "udid" : "499AD576-52EB-40F1-BA87-0E3C997020D7",
        "availabilityError" : "runtime profile not found"
      },

If your environment has no devices, please share the result of xcrun simctl list -j devices and Xcode version

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

2 participants