Repository navigation
[HealthKit] Update bindings up to Xcode 27.0 RC1 - #26596
Conversation
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
There was a problem hiding this comment.
🟢 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
HeartRateVariabilityRmssdbinding. - 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
| /// Identifies heart rate variability as the root mean square of successive heartbeat interval differences, | ||
| /// in milliseconds. |
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
🔥 [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
Html Report (VSDrops) Download Successes✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
jonathanpeppers
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
🔎 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
left a comment
There was a problem hiding this comment.
✅ 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.
Summary
Resolve the remaining HealthKit binding entries for Xcode 27.0 RC1.
HKQuantityTypeIdentifier.HeartRateVariabilityRmssd(HKQuantityTypeIdentifierHeartRateVariabilityRMSSD)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 acronymRmssdon non-tvOS platforms.HealthKit.todofiles after xtro reported their entries resolved.No API-diff suppressions, documentation-baseline changes, runtime-test exclusions, or expected-size files are added.
Validation
make worldsucceeded 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.
24A434)24J360)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
DefaultCtorAllowedcheck aborts in__TCC_CRASHING_DUE_TO_PRIVACY_VIOLATION__immediately after the location-button constructor diagnostic. It reproduced after anothermake worldand 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
.todoentries remain.