Building from Source
Requires macOS with Xcode and Python (for scons).
# Install scons
pip install scons
# Build for Godot 4.6.1
./platforms/ios/scripts/build.sh 4.6.1
This will:
- Download Godot source (for headers only)
- Generate headers with scons
- Build Debug + Release static libraries with xcodebuild
- Create
.xcframeworkbundles - Copy output to
platforms/godot_editor/addons/healthkit_plugin/
Build output is in platforms/ios/build/output/.
Troubleshooting
platform_config.h not found
Run the build script with the correct Godot version. The headers must match your Godot version.
Linker errors with ClassDB::bind_method
Ensure you're using the correct Debug/Release binary for your export type. The xcframework format handles this automatically.