Files
hex/ios/docs/build-and-test.md
Kit Langton 1b4a18e943 chore: prune dead modules, fixtures, and stale docs across repo (#3180)
Removes 28 dead or duplicate files, prunes unused dependencies and inactive feature flags, ratchets file-size ceilings down by 369 lines, scrubs private paths/hostnames/model codenames/dated logs across tests and docs, and fixes pre-existing rustfmt drift.
2026-11-30 16:21:25 -08:00

1.6 KiB

Build and test

Part of Hex for iPhone.

Prerequisites: Xcode 26+ and XcodeGen 2.46.0+.

cd ios
scripts/fetch-cleanup-model.sh   # the cleanup tagger's Core ML model, kept out of git
xcodegen generate
xcodebuild test -project HEXMobile.xcodeproj -scheme HEXMobile -destination "id=<SIM_UDID>"

The emoji index files are generated and committed: after changing scripts/emoji-aliases-en.txt or the sources, run scripts/build-emoji-data.py (it downloads the pinned Unicode and CLDR files, or reads them from --sources).

The cleanup tagger's model (HEXKeyboard/CleanupTagger/HexCleanupTagger.mlpackage, 25 MB) is a GitHub release asset (ios-model-cleanup-tagger-1), not a git file. fetch-cleanup-model.sh downloads it and checks its SHA-256; Xcode Cloud runs it from ci_scripts/ci_post_clone.sh. A new model gets a new release tag and hash.

Replaying real typing

TypingReplayTests runs converted swipe or tap recordings through the live key plane, Swipe typing or Spatial autocorrect, and spacing. Prefix runner variables with TEST_RUNNER_ (HEX_SWIPE_REPLAY, HEX_TAP_REPLAY, optional HEX_REPLAY_LIMIT and HEX_REPLAY_OUT):

TEST_RUNNER_HEX_SWIPE_REPLAY=/path/swipes.json xcodebuild test \
  -project HEXMobile.xcodeproj -scheme HEXMobile -destination "id=<SIM_UDID>" \
  -only-testing:HEXMobileTests/TypingReplayTests

See benchmark/typing-replay/README.md for the JSON schemas, scoring metrics, public datasets, and convert.py commands.