Skip to content

aoyn1xw/swift-devcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift Devcontainer

Open in GitHub Codespaces Docker Pulls

Build and sign iOS apps on Linux — no Mac, no Xcode.

Demo of the Swift devcontainer


What's Included

Tool Purpose
Swift 6.2.3 Compile Swift packages and iOS-targeted apps
xtool Cross-compile Swift for iOS on Linux
zsign Sign IPAs without Xcode
Theos iOS tweak and app development

Getting Started

Codespaces — click the button above. First build takes ~10-15 min, cached after that.

VS Code — clone the repo, open it, run Dev Containers: Reopen in Container.

Docker Compose — runs code-server on port 8080, password changeme:

docker compose up -d

Verify everything works:

swift --version && xtool --help && zsign -h && ls $THEOS

Use in Your Own Repo

Copy .devcontainer/ into any repo and open a Codespace — your project builds with the same toolchain.


Limitations

  • No Xcode, no Simulator, no SwiftUI previews

Troubleshooting

Blank screen behind dev tunnels — configure code-server with your proxy domain:

docker compose exec swift-dev bash -c "mkdir -p /home/vscode/.config/code-server && cat > /home/vscode/.config/code-server/config.yaml << 'EOF'
bind-addr: 0.0.0.0:8080
auth: password
password: changeme
cert: false
proxy-domain: your-tunnel-domain.devtunnels.ms
EOF"
docker compose restart

If issues persist, use VS Code's built-in tunnel instead of forwarding port 8080.


License

Config files only. See upstream licenses: Swift · xtool · zsign · Theos

Questions? Open an issue or hit me on Discord at ayon1xw.

About

a devcontainer for ios developmet (not a replacement for a real mac)

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors