Skip to content

Commit 16245f3

Browse files
authored
Add Local Build Instructions (#67)
* add build local instructions * add Ninja to build steps
1 parent f807801 commit 16245f3

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

misc/ios.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,27 @@ else()
1818
endif()
1919
```
2020

21+
## Build
22+
23+
To build mods for iOS, you must have Mac OS with the iPhone SDK installed from Xcode.
24+
25+
You must also get the Geode binaries for iOS, you can do this using the CLI:
26+
```bash
27+
geode sdk update nightly
28+
geode sdk install-binaries --platform ios
29+
```
30+
31+
Nightly is required, as iOS is currently not on the stable release for Geode.
32+
33+
Now you can build your mod for iOS via:
34+
```bash
35+
geode build -p ios
36+
```
37+
Or if you want to build manually:
38+
```bash
39+
cmake -B build -DCMAKE_SYSTEM_NAME=iOS -DGEODE_TARGET_PLATFORM=iOS -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja
40+
cmake --build build
41+
```
2142

2243
## Github Actions
2344
To build your mod for iOS using `geode-sdk/build-geode-mod`, you have to add iOS to the build matrix, like so:
@@ -30,4 +51,4 @@ To build your mod for iOS using `geode-sdk/build-geode-mod`, you have to add iOS
3051
As of writing this, iOS support is only available on nightly Geode, so make sure to add this to the options of the `build-geode-mod` step
3152
```yml
3253
sdk: nightly
33-
```
54+
```

0 commit comments

Comments
 (0)