Skip to content

[HealthKit] Update bindings up to Xcode 27.0 RC1 - #26596

Merged
dalexsoto merged 1 commit into
xcode27.0from
dev/alex/xc27-HealthKit
Sep 11, 2026
Merged

dalexsoto merged 1 commit into
xcode27.0from
dev/alex/xc27-HealthKit

Conversation

@dalexsoto

Copy link
Copy Markdown
Member

Summary

Resolve the remaining HealthKit binding entries for Xcode 27.0 RC1.

API Availability
HKQuantityTypeIdentifier.HeartRateVariabilityRmssd (HKQuantityTypeIdentifierHeartRateVariabilityRMSSD) iOS 27.0, macOS 27.0, Mac Catalyst 27.0; unavailable on tvOS

The new smart-enum member is appended, preserving the existing numeric values. Its XML documentation describes RMSSD and its millisecond units. Availability and the native field spelling were checked against the RC1 SDK headers and newly generated reference bindings.

Related changes

  • src/healthkit.cs: add the documented smart-enum member.
  • tests/monotouch-test/HealthKit/QuantityTypeIdentifierTest.cs: guard the new member on pre-27.0 runtimes in the existing enumeration/factory regression test.
  • tests/introspection/ApiTypoTest.cs: recognize the scientific acronym Rmssd on non-tvOS platforms.
  • Delete the completed iOS, macOS and Mac Catalyst HealthKit.todo files after xtro reported their entries resolved.

No API-diff suppressions, documentation-baseline changes, runtime-test exclusions, or expected-size files are added.

Validation

make world succeeded before implementation, after the binding change, and again when ruling out stale artifacts during the Mac Catalyst crash investigation. Test suites and platforms were run sequentially.

The final clean xtro run removed generated references, response files, classification stamps and tool outputs before regenerating all four platforms: Sanity check passed. The final clean Cecil run had 112 passed, 4 skipped, 0 failed, including documentation checks.

Platform/runtime Xtro Cecil Introspection Quantity-identifier regression
iOS 27.0 RC1 (24A434) Pass Pass 43 passed initially; the spelling failure was fixed and its targeted retest passed 1 passed; includes RMSSD
tvOS 27.0 RC1 (24J360) Pass Pass 43 passed Not applicable; tvOS test-app build passed
macOS 26.6.2 Pass Pass 32 passed, 2 ignored 1 passed; the new member is version-gated
Mac Catalyst on macOS 26.6.2 Pass Pass 38 passed, 4 ignored, 1 environment-blocked check 1 passed; the new member is version-gated

The RC branch normally disables app-size tests and has no committed size baselines. A temporary, same-branch pre-change baseline was therefore captured with all cases explicitly enabled. The final run cleaned the test project and compared without either baseline-update environment variable: 16 passed, 0 skipped, 0 failed. Fourteen configurations were byte-size unchanged; the two macOS CoreCLR configurations grew by 1,024 bytes each, below the 10,240-byte tolerance. All tvOS controls had no file or size drift, and preserved-API comparisons passed. The temporary repository baselines were removed afterward.

Runtime limitations

Mac Catalyst's DefaultCtorAllowed check aborts in __TCC_CRASHING_DUE_TO_PRIVACY_VIOLATION__ immediately after the location-button constructor diagnostic. It reproduced after another make world and a clean test-app build. The remaining fixtures and constructor checks were run separately and passed; no permissions were changed and no source exclusion was added. A suitable GUI/CI environment is still needed for that complete constructor check.

The host runs macOS 26.6.2, so new 27.0 macOS/Mac Catalyst symbols are availability-gated rather than runtime-validated there. The iOS 27.0 RC1 run exercised the new native field and quantity-type factory.

No HealthKit .todo entries remain.

Bind HKQuantityTypeIdentifierHeartRateVariabilityRMSSD as
HKQuantityTypeIdentifier.HeartRateVariabilityRmssd. Match the RC1 SDK's
iOS, macOS and Mac Catalyst 27.0 availability and exclude tvOS.
Append the smart-enum member to preserve all existing numeric values,
and document the measurement and its millisecond units.

Extend the existing quantity-identifier regression test with a 27.0
runtime guard, and recognize the RMSSD acronym in the introspection
spelling vocabulary on the supported platforms. Remove the three
completed HealthKit todo files.

Validation includes make world before and after the binding update,
fresh SDK reference generation, final clean xtro and Cecil runs, and
the quantity-identifier regression on iOS, macOS and Mac Catalyst.
The final clean app-size comparison executed all 16 normally RC-gated
cases against a temporary pre-change baseline: 14 were unchanged and
the two macOS CoreCLR cases grew by 1,024 bytes, below the 10,240-byte
tolerance. No temporary size baselines are committed.

iOS and tvOS 27.0 RC1 introspection passed, including the iOS spelling
retest. macOS introspection passed on the 26.6.2 host. Mac Catalyst's
DefaultCtorAllowed check reproducibly aborts in TCC while constructing
the location button, even after another make world and clean app build;
the remaining applicable checks passed without adding a source skip.
New 27.0 desktop APIs remain runtime-gated on this older host.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a3d72efa-aead-4b75-8681-4400120e7e31
Copilot AI lite review requested due to automatic review settings September 11, 2026 02:25
@dalexsoto dalexsoto added this to the xcode27 milestone Sep 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Only a non-blocking documentation nit remains.

Pull request overview

Updates HealthKit bindings for Xcode 27.0 RC1 with the RMSSD quantity identifier and related validation cleanup.

Changes:

  • Adds the platform-gated HeartRateVariabilityRmssd binding.
  • Updates regression and typo-introspection tests.
  • Removes resolved HealthKit TODO files.
File summaries
File Summary
tests/xtro-sharpie/api-annotations-dotnet/macOS-HealthKit.todo Removes resolved macOS TODO entries.
tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-HealthKit.todo Removes resolved Mac Catalyst TODO entries.
tests/xtro-sharpie/api-annotations-dotnet/iOS-HealthKit.todo Removes resolved iOS TODO entries.
tests/monotouch-test/HealthKit/QuantityTypeIdentifierTest.cs Gates RMSSD factory testing to supported runtimes.
tests/introspection/ApiTypoTest.cs Allows the Rmssd acronym on supported platforms.
src/healthkit.cs Adds the RMSSD binding; documentation should include the public RMSSD acronym.
Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread src/healthkit.cs
Comment on lines +3355 to +3356
/// Identifies heart rate variability as the root mean square of successive heartbeat interval differences,
/// in milliseconds.
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 8e05c4112f3966db4054c1f5c7841e1d1a2013a4 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [CI Build #8e05c41] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

0 tests crashed, 1 tests failed, 194 tests passed.

Failures

❌ Tests on macOS Tahoe (26) tests [attempt 2]

1 tests failed, 4 tests passed.

Failed tests

  • macOS/osx-x64 monotouch-test: Failed (exit code 1)
    • [FAIL] TestCancel : Connection timed out.
    • [FAIL] TestEndpointProperty : Connection timed out.
    • [FAIL] TestForceCancel : Connection timed out.
    • ... and 66 more failures
  • macOS/osx-arm64 monotouch-test: Failed (exit code 137)
    • No test failure details available. Output tail:
      • 2026-09-11 04:11:58.517 monotouchtest[70749:484142] CFSocketSetAddress listen failure: 102
      • 2026-09-11 04:11:58.533 monotouchtest[70749:484142] CFSocketSetAddress listen failure: 102
      • 2026-09-11 04:11:58.550 monotouchtest[70749:484142] CFSocketSetAddress listen failure: 102
      • 2026-09-11 04:11:58.566 monotouchtest[70749:484142] CFSocketSetAddress listen failure: 102
      • 2026-09-11 04:11:58.582 monotouchtest[70749:484142] CFSocketSetAddress listen failure: 102
      • 2026-09-11 04:11:58.599 monotouchtest[70749:484142] CFSocketSetAddress listen failure: 102
      • 2026-09-11 04:11:58.615 monotouchtest[70749:484142] CFSocketSetAddress listen failure: 102
      • 2026-09-11 04:11:58.664 monotouchtest[70749:483582] CFSocketSetAddress listen failure: 102
      • Execution timed out after 600 seconds.
      • Execution completed with exit code 137

Html Report (VSDrops) Download

Successes

✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker (iOS): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 21 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 19 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 18 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 21 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 19 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
⚠️ Tests on macOS Golden Gate (27): Tests skipped, incorrect beta version. Html Report (VSDrops) Download

Linux Build Verification

✅ Linux build succeeded

Pipeline on Agent
Hash: 8e05c4112f3966db4054c1f5c7841e1d1a2013a4 [PR build]

@jonathanpeppers jonathanpeppers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Required CI is not green

I found no substantive issues with the binding, platform availability, API compatibility, tests, or removal of the resolved HealthKit todo entries. However, the required xamarin-macios-sim-pr-tests check is currently failing in the arm64 - Mac Tahoe (26) macOS tests subjob. Please rerun or triage that required check before merging.

@jonathanpeppers jonathanpeppers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔎 CI triage follow-up

Azure build 15287930 confirms the required failure is unrelated to the HealthKit changes. Both macOS monotouch-test variants hit 69 Network-framework connection timeouts (NWConnectionTest and dependent fixtures); the arm64 run then timed out after repeated CFSocketSetAddress listen failure: 102 messages. The HealthKit/API-diff/xtro coverage passed. A clean rerun is still needed because the required check remains red.

@jonathanpeppers jonathanpeppers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM

The reviewed HEAD is unchanged and there are no unresolved substantive code or API findings. The Tahoe Network-framework test failures are unrelated to this HealthKit update and are not an approval blocker.

@dalexsoto
dalexsoto merged commit 27b8e34 into xcode27.0 Sep 11, 2026
53 of 56 checks passed
@dalexsoto
dalexsoto deleted the dev/alex/xc27-HealthKit branch September 11, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants