Skip to content

[SensitiveContentAnalysis] Update bindings up to Xcode 27.0 Beta 3 - #26272

Merged
dalexsoto merged 1 commit into
xcode27.0from
dev/alex/xc27-SensitiveContentAnalysis
Jul 24, 2026
Merged

[SensitiveContentAnalysis] Update bindings up to Xcode 27.0 Beta 3#26272
dalexsoto merged 1 commit into
xcode27.0from
dev/alex/xc27-SensitiveContentAnalysis

Conversation

@dalexsoto

Copy link
Copy Markdown
Member

Summary

  • Bind SCSensitiveContentType as a strongly typed NSString-backed enum with the sexually explicit and gore/violence classifications.
  • Expose SCSensitivityAnalysis.WeakDetectedTypes and the strongly typed DetectedTypes set on iOS, macOS, and Mac Catalyst 27.0.
  • Remove the resolved SensitiveContentAnalysis xtro todo files and update the existing cecil documentation baseline.

Validation

  • make world before implementation and again after the binding changes.
  • Final clean xtro generation/classification: sanity passed.
  • Final clean cecil suite: passed.
  • iOS 27 introspection: 44/44 passed.
  • tvOS 27 introspection: 43/43 passed, validating the tvOS exclusions.
  • macOS introspection: 32/32 passed with two expected latest-OS-only ignores.
  • Mac Catalyst field, selector, signature, and weak-property fixtures passed; the unrelated full constructor fixture remains blocked by the documented headless CLLocationButton TCC crash.
  • Final clean filtered app-size suite completed with 16 expected skips because the selected Xcode is a beta.

Bind the Xcode 27 sensitive-content classification APIs by adding the
SCSensitiveContentType smart enum and exposing both the native detected
content-type set and its strongly typed HashSet wrapper.

Apply the iOS, macOS, and Mac Catalyst 27.0 availability from the SDK
headers, preserve tvOS unavailability, remove the resolved xtro todo
files, and extend the existing documentation known-failures baseline for
the new public surface.

Validated with full clean repository builds, xtro and cecil validation,
iOS/tvOS/macOS introspection, focused Mac Catalyst introspection, and the
filtered app-size test suite.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5f3d52f5-f7d9-4417-9684-10bf51003c01
Copilot AI review requested due to automatic review settings July 23, 2026 23:06
@dalexsoto dalexsoto added this to the xcode27 milestone Jul 23, 2026
@dalexsoto
dalexsoto requested a review from rolfbjarne July 23, 2026 23:06

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.

Pull request overview

Updates the SensitiveContentAnalysis bindings to align with Xcode 27 Beta 3, adding strong typing for newly exposed sensitive-content classifications and exposing the detected-types surface area across supported platforms.

Changes:

  • Add SCSensitiveContentType as an NSString-backed strongly typed enum (sexually explicit, gore/violence) and expose SCSensitivityAnalysis.WeakDetectedTypes + wrapped DetectedTypes.
  • Remove resolved XTRO Sharpie .todo entries for SensitiveContentAnalysis on iOS/macOS/Mac Catalyst.
  • Update the Cecil documentation known-failures baseline for the newly exposed public API surface.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/xtro-sharpie/api-annotations-dotnet/macOS-SensitiveContentAnalysis.todo Removes resolved XTRO TODO entries for macOS SensitiveContentAnalysis.
tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-SensitiveContentAnalysis.todo Removes resolved XTRO TODO entries for Mac Catalyst SensitiveContentAnalysis.
tests/xtro-sharpie/api-annotations-dotnet/iOS-SensitiveContentAnalysis.todo Removes resolved XTRO TODO entries for iOS SensitiveContentAnalysis.
tests/cecil-tests/Documentation.KnownFailures.txt Adds baseline entries for the new public enum/type members and properties.
src/sensitivecontentanalysis.cs Adds SCSensitiveContentType and SCSensitivityAnalysis detected-types API surface.

Comment thread src/sensitivecontentanalysis.cs
@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: 0e2625ba3f0959ccb6b5945e29bffd013793e3fe [PR build]

@dalexsoto
dalexsoto enabled auto-merge (squash) July 24, 2026 02:24
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [CI Build #0e2625b] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 200 tests passed 🎉

Tests counts

✅ 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. [attempt 2] 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 6 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 19 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. [attempt 2] 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 Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Golden Gate (27): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: 0e2625ba3f0959ccb6b5945e29bffd013793e3fe [PR build]

@dalexsoto
dalexsoto merged commit fd2ca55 into xcode27.0 Jul 24, 2026
56 checks passed
@dalexsoto
dalexsoto deleted the dev/alex/xc27-SensitiveContentAnalysis branch July 24, 2026 06:52
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