Closed joreilly closed 2 years ago
Thanks! That is interesting. We tested on M1 and Intel, but probably not that Xcode version. It should work regardless of version, but the CLI is trying to do a lot more than the old setup script. Will check it out...
xcode-kotlin info
Plugin not installed. Run 'xcode-kotlin install' to install it.
Installed plugin version: none
Bundled plugin version: 1.2.0
Language spec installed: No
LLDB init installed: No
LLDB Xcode init sources main LLDB init: Yes
Installed Xcode versions:
x Xcode 13.4 (13F12a) EFD92DF8-D0A2-4C92-B6E3-9B3CD7E8DC19 /Applications/Xcode.app
✔ - plugin is compatible, x - plugin is not compatible
Run 'xcode-kotlin sync' to add compatibility for all listed Xcode versions.
Same here with M1 Pro and XCode 13.4 (13F17a):
➜ ~ brew install xcode-kotlin
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
dbml-cli gcc@12 goctl sdl2_sound sftpgo ttmath
==> Updated Formulae
Updated 72 formulae.
==> Updated Casks
Updated 60 casks.
==> Downloading https://ghcr.io/v2/homebrew/core/xcode-kotlin/manifests/1.2.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/xcode-kotlin/blobs/sha256:e30d4
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Pouring xcode-kotlin--1.2.0.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/xcode-kotlin/1.2.0: 12 files, 2.7MB
==> Running `brew cleanup xcode-kotlin`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
➜ ~ xcode-kotlin install
Installing 1.2.0.
xcode-kotlin has crashed, do you want to upload the crash report to Touchlab? y/n: y
Uploading crash report.
Upload successful
Thanks for the reports! It's embarrassing, I didn't make the CLI create the directory structure needed before copying the plugin (thinking it was already created by Xcode). I've just submitted an update to Homebrew (version 1.2.1), but it'll take a while to release.
In the meantime, running the following two commands before xcode-kotlin install
should workaround the crash:
mkdir -p ~/Library/Developer/Xcode/Plug-ins
mkdir -p ~/Library/Developer/Xcode/Specifications
In the meantime, running the following two commands before
xcode-kotlin install
should workaround the crash:mkdir -p ~/Library/Developer/Xcode/Plug-ins mkdir -p ~/Library/Developer/Xcode/Specifications
It works and this plugin is fantastic! Thanks 🙇🏼
Local homebrew build while we wait for homebrew approval
brew install xcode-kotlin --head
Update posted and merged to homebrew. Try again!
I ran
brew install xcode-kotlin
first and then when I runxcode-kotlin install
I get following (crash report hopefully uploaded short while ago) . This is M1 device fwiw. Currently have Xcode 13.4 installed.