360 Secure SkillHub
360 安全技能中心

Docker Osx

通过 Docker 与 KVM 在 Linux 上启动 macOS 虚拟机,提供 start/stop/status/ssh/vnc/logs 命令以及 SSH、VNC 连接信息,供没有 Mac 的环境编译 iOS 应用;要求 4 核以上 CPU、8GB 以上内存和 100GB 磁盘,不包含镜像文件与签名发布流程。

nightvibes3
nightvibes3
热度 86.76
最近更新 2026-05-18 12:09:17
分类:开发依赖:代码执行应用场景:DevOps / 代码生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add docker-osx
Metadata
name
docker_osx
description
Run macOS in Docker on Linux with KVM. Use when: user wants to build iOS apps/IPAs, needs macOS environment, wants to compile Apple apps without Mac, or wants to run macOS-only software. NOT for: servers without KVM, low-resource systems (needs 4+ CPU, 8GB RAM), or production macOS deployments. Requires Docker + KVM.
homepage
https://github.com/sickcodes/Docker-OSX
metadata
{"openclaw":{"emoji":"🍎","requires":{"bins":["docker"],"kvm":true}}}

Docker-OSX

Run macOS in Docker - build iOS apps on Linux!

Quick Start

start macos        # Boot VM (2-5 min)
status macos       # Check if ready
ssh macos          # Connect
stop macos         # Shutdown

Commands

Command Description
start macos Boot macOS VM
stop macos Shutdown VM
status macos Check running
ssh macos Get SSH command
vnc macos Get VNC address
logs macos View logs

Connection

  • SSH: port 50922, password: alpine
  • VNC: port 5900

Building iOS

# In macOS terminal:
xcode-select --install
git clone <repo>
cd repo
xcodegen generate
xcodebuild -project App.xcodeproj -scheme App -configuration Release -destination 'generic/platform=iOS' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO build

Errors

Error Fix
KVM not available Server needs hardware virtualization
Docker not installed `curl -sSL get.docker.com

Resources

  • 4+ CPU cores
  • 8GB+ RAM
  • 100GB disk