simlock README

项目的 README,来自 github.com/callstackincubator/simlock。合并为一个 markdown 文件:README.md。

Simlock by Callstack. Turn your Mac into a simulator cloud that manages itself.

One device per agent

Simlock leases iOS simulators, Android emulators and enrolled phones to coding agents that run in parallel. An agent asks for a device and gets one back, booted and checked, that no other agent touches until it is released. Simlock creates devices when none is free, queues requests when the machine is full, and cleans up devices nobody uses. Start on one Mac; put more Macs and Linux machines behind a gateway when one is not enough.

npm i -g simlock
simlock doctor
simlock lease --platform ios --device "iPhone 16"

Documentation

Everything is on the website: https://callstackincubator.github.io/simlock/docs/introduction

Made with ❤️ at Callstack

simlock is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. Callstack is a group of React and React Native geeks, contact us at [email protected] if you need any help with these or just want to say hi!

Like the project? ⛸️ Join the team who does amazing stuff for clients and drives React Native Open Source! 🔥

simlock (callstackincubator/simlock)

正在搜索数据库…

这是什么?Simlock 是一个控制平面,可以把 iOS 模拟器、Android 模拟器和已注册的手机租给同时并行运行的多个编程智能体,避免它们抢占同一台设备、相互干扰。
这是运行一次的命令行工具,还是会持续运行的服务?它以 Worker 进程的形式运行,负责拥有和管理某台机器上的设备。另外还可以选配一个 Gateway,在多个 Worker 前面提供一个统一的 URL。智能体是通过网络与这个控制平面通信的,而不是调用一次性的命令。
怎么让它跑起来?你需要安装 Simlock、租用第一台设备,并按照文档中“入门指南”部分的说明,把你的编程智能体连接到它。
我需要 Mac 吗,还是可以完全在 Linux 上运行?你需要先在一台 Mac 上启动 Simlock,因为 iOS 模拟器只能在 macOS 上运行。当一台机器不够用时,你可以通过 Gateway 再添加更多 Mac 和 Linux 机器。
所有设备都被占用时会怎样?没有空闲设备时,Simlock 会启动一台新设备;机器满负荷后,新的请求会排队等待;无人再使用的设备会被自动清理。
这是给谁用的?它面向同时运行多个编程智能体的团队。这些团队需要独占、即用即开的模拟器或已注册的手机,而不是共享同一台设备并引发冲突。
Worker 和 Gateway 有什么区别?Worker 是每台机器上真正拥有和管理其设备的进程。Gateway 位于多个 Worker 前面,为智能体提供一个统一的 URL,用来访问整个设备集群。
为什么不让每个智能体各自启动一个模拟器?智能体并行运行时,如果各自启动模拟器,就会争抢同一个已启动的模拟器。Simlock 则会为每个请求分配一台独占、已检查且可直接使用的设备,确保两个智能体不会用到同一台设备。
大小
36 MB
星标
676
时长
4个月
提交 · 90 天