|
@@ -12,22 +12,29 @@ Open `<project_name>/Supporting Files/<project_name>-Info`, and add a new string
|
|
|
|
|
|
## Building plugins for Godot 4.0
|
|
## Building plugins for Godot 4.0
|
|
|
|
|
|
-In the root directory, recursively clone the `godot-ios-plugins` repository and set the `godot` submodule to a commit matching the current engine.
|
|
|
|
|
|
+We've recursively cloned `godot-ios-plugins` into this directory and set the `godot` submodule to the commit matching our current engine version.
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-git clone --recursive https://github.com/godotengine/godot-ios-plugins.git
|
|
|
|
-cd godot-ios-plugins/godot
|
|
|
|
|
|
+git clone --recursive https://github.com/godotengine/godot-ios-plugins.git plugins/godot-ios-plugins
|
|
|
|
+cd plugins/godot-ios-plugins/godot
|
|
git fetch
|
|
git fetch
|
|
git checkout <godot_engine_commit>
|
|
git checkout <godot_engine_commit>
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+To build the plugin, run the commands below:
|
|
|
|
+
|
|
|
|
+```bash
|
|
scons platform=ios target=template_debug
|
|
scons platform=ios target=template_debug
|
|
-cd ..
|
|
|
|
|
|
+cd .. # plugins/godot-ios-plugins
|
|
scons target=release_debug arch=arm64 simulator=no plugin=<plugin> version=4.0
|
|
scons target=release_debug arch=arm64 simulator=no plugin=<plugin> version=4.0
|
|
./scripts/generate_static_library.sh <plugin> release_debug 4.0
|
|
./scripts/generate_static_library.sh <plugin> release_debug 4.0
|
|
./scripts/generate_xcframework.sh <plugin> release_debug 4.0
|
|
./scripts/generate_xcframework.sh <plugin> release_debug 4.0
|
|
```
|
|
```
|
|
|
|
|
|
-Then, rename `./bin/<plugin>.release_debug.xcframework` to `./bin/<plugin>.xcframework` and move the directory to `./plugins/<plugin>/`.
|
|
|
|
|
|
+## Adding plugins to the project
|
|
|
|
+
|
|
|
|
+Then, rename `./bin/<plugin>.release_debug.xcframework` to `./bin/<plugin>.xcframework` and move the directory to the project's iOS plugin directory [`project/ios/plugins/`](../ios/plugins/).
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-mv ./bin/<plugin>.release_debug.xcframework ./plugins/<plugin>/<plugin>.xcframework
|
|
|
|
|
|
+mv ./bin/<plugin>.release_debug.xcframework ../../project/ios/plugins/<plugin>/<plugin>.xcframework
|
|
```
|
|
```
|