Skip to content

Instantly share code, notes, and snippets.

View erikkerber's full-sized avatar
📱
One of the "OK" ones

Erik Kerber erikkerber

📱
One of the "OK" ones
View GitHub Profile
@erikkerber
erikkerber / runtime_json_bug.sh
Last active October 26, 2023 17:57
Bug with simctl list devices --json with duplicate sim runtime identifiers
#!/bin/bash
set -x
xcrun simctl delete all
DEVELOPER_DIR=/Applications/Xcode-15.0.0.app/Contents/Developer xcrun simctl create "Made with Xcode 15" "iPhone 15 Pro" "com.apple.CoreSimulator.SimRuntime.iOS-17-0"
set +x; echo -e "\n\n+++++++++++++++++++++ Device shows up with Xcode 15.0.0 +++++++++++++++++++++++++++++++"; set -x
# Shows the newly created simulator
-cp \
bazel-out/darwin_arm64-fastbuild/bin/external/rules_jvm_external++maven+maven_slack/com/google/code/findbugs/jsr305/3.0.2/header_jsr305-3.0.2.jar:\
bazel-out/darwin_arm64-fastbuild/bin/external/rules_jvm_external++maven+maven_slack/com/slack/lint/slack-lint-annotations/0.9.0/header_slack-lint-annotations-0.9.0.jar:\
external/rules_kotlin++rules_kotlin_extensions+com_github_jetbrains_kotlin_git/lib/annotations-13.0.jar:\
external/rules_kotlin++rules_kotlin_extensions+com_github_jetbrains_kotlin_git/lib/kotlin-stdlib.jar:\
external/rules_kotlin++rules_kotlin_extensions+com_github_jetbrains_kotlin_git/lib/kotlin-stdlib-jdk7.jar:\
external/rules_kotlin++rules_kotlin_extensions+com_github_jetbrains_kotlin_git/lib/kotlin-stdlib-jdk8.jar:\
bazel-out/darwin_arm64-fastbuild/bin/external/rules_jvm_external++maven+maven_slack/org/jetbrains/kotlin/kotlin-stdlib/2.1.20/header_kotlin-stdlib-2.1.20.jar:\
bazel-out/darwin_arm64-fastbuild/bin/external/rules_jvm_external++maven+maven_slack/org/jetbrains/a