Skip to content

Add Xcode pre-build script for Gemstone XCFramework#120

Merged
0xh3rman merged 4 commits intomainfrom
build-gemstone
Apr 13, 2026
Merged

Add Xcode pre-build script for Gemstone XCFramework#120
0xh3rman merged 4 commits intomainfrom
build-gemstone

Conversation

@0xh3rman
Copy link
Copy Markdown
Contributor

@0xh3rman 0xh3rman commented Apr 8, 2026

  • Add build-gemstone.sh that hashes Rust sources and only rebuilds when changed, similar to Android Gradle inputs/outputs
  • Add Run Script Build Phase to Gem target before Sources
  • Disable ENABLE_USER_SCRIPT_SANDBOXING (script needs access to ../core and cargo)

image image

Need to run jun once for SPM resolution

Comment thread ios/scripts/build-gemstone.sh Outdated
- Add build-gemstone.sh that hashes Rust sources and only rebuilds
  when changed, similar to Android Gradle inputs/outputs
- Add Run Script Build Phase to Gem target before Sources
- Update generate-stone.sh to write hash cache so manual runs
  prevent duplicate builds from the build phase
- Add archive recipe to justfile
- Disable ENABLE_USER_SCRIPT_SANDBOXING (script needs access to
  ../core and cargo)
@gemcoder21
Copy link
Copy Markdown
Contributor

Does this work well on first run? when you clone the repo too?

@0xh3rman
Copy link
Copy Markdown
Contributor Author

0xh3rman commented Apr 12, 2026

Does this work well on first run? when you clone the repo too?

Need to manually run once, because SPM resolving happens before xcode build phases, this script doesn't have chance to run before that

@0xh3rman 0xh3rman merged commit ae9f317 into main Apr 13, 2026
3 checks passed
@0xh3rman 0xh3rman deleted the build-gemstone branch April 13, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants