An open API service indexing awesome lists of open source software.

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)

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
```