Amp 推出 macOS Satellites:云端 Mac 自动构建、测试和运行苹果应用
Amp 推出 macOS Satellites 功能,支持在开发过程中按需启动云端 Mac 来构建、测试和运行 iOS 或 Mac 应用。该功能采用双机架构,Linux 节点负责常规任务,Mac 卫星节点负责 macOS 相关工作,约 30 秒内可启动并自动同步代码。目前该功能处于测试阶段并开放候补名单。
Amp now has a Mac: ask it to work on your iOS or Mac app and watch it build, test, and run the app.
How It Works
Your thread still runs on a Linux orb, next to your dev server and toolchain. The Mac is a second machine attached to that orb. Amp can automatically start a Mac, run commands on it, and read and write files, so it decides on its own when the work needs a Mac.
When it does, our server boots a fresh Mac in the cloud with Xcode and the simulators installed, in about 30 seconds. Your orb connects to it and keeps your code in sync, so Amp still edits on the orb and only builds, runs, and tests on the Mac. Screenshots, logs, and builds come back to the thread, and the app on the Mac reaches your backend on the orb through portals.
The thread's Mac tab streams the Mac's screen. Watch Amp's work, or take control of the Mac and try the app yourself.
Every Mac starts fresh, and nothing on it is saved. When Amp is done with a Mac, it keeps it running for 20 more minutes. If you send a follow-up in that time, Amp reuses the same Mac and its build cache instead of starting a new Mac and building from scratch. After that, the Mac is deleted. To delete it right away, archive the thread or ask Amp to stop the Mac.
Morbs Are Dead, Long Live macOS Satellites
Before shipping macOS Satellites, we tried out Morbs: orbs that ran the whole thread on a Mac. But we ran into issues that made the approach unfeasible for a wider rollout. Docker and your backend took minutes to start there, and keeping a Mac disk around for every thread got expensive.
So we split the thread across two machines. Everything that runs well on Linux stays on the orb and starts fast, and a Mac only shows up for the work that needs macOS. We're calling them macOS Satellites because they orbit your orb.
Pricing
| Size | CPUs | Memory | Price |
|---|---|---|---|
mac.medium |
6 | 14 GB | $2/hour |
mac.large |
12 | 28 GB | $4/hour |
macOS Satellite time comes out of the same orb usage your plan includes, just at a higher rate. Once that runs out, it comes out of your Amp credits, the same way orb time does.
Every Mac starts as a mac.medium. If you need more, ask Amp for a mac.large, or turn off mac.medium under Mac Satellites in Settings → Experimental Features.
Join the Waitlist
macOS Satellites are in beta and opening up as we add Macs. Join the waitlist in Settings → Experimental Features. Each day you click Move Me Up moves you up the line.
Go point Amp at that app you've been meaning to build! Find out more in the docs.
New to Amp? Sign up and get started on your Apple apps.
来源:Amp Chronicle · ampcode.com