-
-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
I'm not 100% sure where to put this, but I feel like Skip would benefit a lot from some kind of standard installation test. Here's what I've been doing on my 64GB M1 Max MacBook Pro, but it's not good enough.
- Download the latest IPSW (you can skip this step, but it makes running the test a lot faster)
- Install mist https://github.com/ninxsoft/mist-cli (I do it with
brew install mist-cli) mist download firmware 26… that will download theipswin/Users/Shared/Mist
- Install mist https://github.com/ninxsoft/mist-cli (I do it with
- Install UTM.app https://mac.getutm.app/
- Create a new macOS VM.
- Use the
ipswyou downloaded withmist(or let UTM do it, but if you do that, it will download an 18GBipswand then throw it away when it's done) - On my 64GB M1 Max MacBook Pro, I create a VM with 32GB RAM, 100GB disk
- Use the
- Follow the instructions in https://skip.dev/docs/gettingstarted/
- "Install Xcode"
- In a VM, you can't download apps from the App Store, so go to https://developer.apple.com/download/all/?q=Xcode and download the latest release version of Xcode there.
- It's in a
.xip; double click it, and drag the.appinto/Applications. - Launch Xcode, accept the license, check the latest iOS platform support, uncheck Predictive Code Completion (just to save time) and let it start downloading. (You can continue the next step in parallel.)
- "Install Android Studio"
- Go to https://developer.android.com/studio click the Download button, select Apple Silicon, and download it.
- You'll get a
.dmgfile; open it, drag the.appinto/Applications - Run Android Studio, and click Next Next Next to install the stock components (SDK platform, SDK tools, and emulator) and accept licenses (TODO: Install command-line tools as well?)
- "Install Homebrew"
- Go to https://brew.sh/ and run the script on the home page
- That will install Xcode Commandline Tools and
xcode-selectthem.skip doctorshould suggest usingxcode-selectif the command-line tools are selected #609 You have to manuallysudo xcode-select --switch /Applications/Xcode.app/Contents/Developer.
brew install skiptools/skip/skip- When Xcode/Android Studio are done installing SDKs, run
skip checkup
- "Install Xcode"
This isn't enough, because, from here, we have to set up an emulator and launch it. But there are a ton of bugs around that. See https://github.com/orgs/skiptools/discussions/629 for more detail.
But the biggest flaw in this test plan is that you can't run the Android emulator at all on a macOS VM on Apple Silicon! It crashes on startup with this error: HVF error: HV_UNSUPPORTED (The "HV" is for "hardware virtualization.") I know of no workaround. 😭 Even Github Actions are impacted. ReactiveCircus/android-emulator-runner#350
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels