https://github.com/kabiroberai/swift-sdk-darwin
Darwin Swift SDK for Linux (experimental)
https://github.com/kabiroberai/swift-sdk-darwin
Last synced: 3 months ago
JSON representation
Darwin Swift SDK for Linux (experimental)
- Host: GitHub
- URL: https://github.com/kabiroberai/swift-sdk-darwin
- Owner: kabiroberai
- License: mit
- Created: 2023-07-17T08:36:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-30T20:29:33.000Z (7 months ago)
- Last Synced: 2025-03-28T17:35:06.650Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 30.3 KB
- Stars: 47
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# swift-sdk-darwin
SDKs for cross-compiling Darwin code on Linux.
## Building
Prerequisites:
- macOS
- Xcode
- Linux
- [rsync](https://rsync.samba.org)
- [unxip](https://github.com/saagarjha/unxip)Steps:
1. Download and install/extract [Xcode](https://developer.apple.com/download/all/?q=Xcode) 16.0 or higher
- Use `unxip` to extract Xcode if you're on Linux.
2. Run `./build.sh [developer dir]`.
- **developer dir**: this should be the path to `Xcode.app/Contents/Developer`. On macOS, you can omit this argument (or pass `auto`) to let the script infer it.Find the output at `output/darwin-linux-$(arch).artifactbundle`.
## Installing
Prerequisites:
- Swift 6.0 toolchain ()
- `darwin.artifactbundle` built for your host OS (see **Building**)```
swift sdk install output/darwin-linux-$(arch).artifactbundle
```## Usage
```
swift build --swift-sdk arm64-apple-ios
```