Skip to content

[AppKit] Update bindings up to Xcode 27 Beta 3#25983

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

[AppKit] Update bindings up to Xcode 27 Beta 3#25983
dalexsoto merged 1 commit into
xcode27.0from
dev/alex/xc27-appkit

Conversation

@dalexsoto

Copy link
Copy Markdown
Member

Bind the two macOS-only AppKit APIs introduced in the Xcode 27 SDK:

  • NSSpellChecker.ignoreGrammarRange:inSentence:inSpellDocumentWithTag:
  • NSTextCheckingWaitForAllGrammarCheckingResultsKey (an NSTextCheckingOptionKey)

Both are available on macOS 27.0 only (NSSpellChecker is [NoMacCatalyst]), so they carry [Mac (27, 0)] and inherit the type's Mac Catalyst exclusion.

This resolves the two entries in
tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.todo (deleting the now-empty file) and adds the cecil documentation known-failure entry for the new IgnoreGrammarRange method.

Bind the two macOS-only AppKit APIs introduced in the Xcode 27 SDK:

* NSSpellChecker.ignoreGrammarRange:inSentence:inSpellDocumentWithTag:
* NSTextCheckingWaitForAllGrammarCheckingResultsKey (an NSTextCheckingOptionKey)

Both are available on macOS 27.0 only (NSSpellChecker is [NoMacCatalyst]), so
they carry [Mac (27, 0)] and inherit the type's Mac Catalyst exclusion.

This resolves the two entries in
tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.todo (deleting the
now-empty file) and adds the cecil documentation known-failure entry for the
new IgnoreGrammarRange method.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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 AppKit bindings to match two new macOS 27.0-only APIs introduced in the Xcode 27 Beta 3 SDK, keeping the generated API surface and validation suites (xtro/cecil) in sync.

Changes:

  • Added NSSpellChecker.IgnoreGrammarRange(NSRange, string, nint) with [Mac (27, 0)].
  • Added the NSTextCheckingWaitForAllGrammarCheckingResultsKey AppKit field binding with [Mac (27, 0)].
  • Removed the now-resolved xtro-sharpie todo entry and added the cecil documentation known-failure for the new method.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.todo Deletes resolved xtro annotations now that the missing selector/field are bound.
tests/cecil-tests/Documentation.KnownFailures.txt Adds the new NSSpellChecker.IgnoreGrammarRange method to documentation known-failures (consistent with existing NSSpellChecker method entries).
src/appkit.cs Introduces the new macOS 27.0 AppKit bindings: selector ignoreGrammarRange:inSentence:inSpellDocumentWithTag: and field NSTextCheckingWaitForAllGrammarCheckingResultsKey.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [PR Build #9c1a61e] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 9c1a61e5f25e97b1425833c5d4a013e080622927 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [PR Build #9c1a61e] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 9c1a61e5f25e97b1425833c5d4a013e080622927 [PR build]

@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: 9c1a61e5f25e97b1425833c5d4a013e080622927 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [PR Build #9c1a61e] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 9c1a61e5f25e97b1425833c5d4a013e080622927 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [CI Build #9c1a61e] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

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

Failures

❌ Tests on macOS Golden Gate (27) tests [attempt 2]

🔥 Failed catastrophically on VSTS: test results - mac_golden_gate (no summary found).

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 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 18 tests passed. [attempt 3] Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 17 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 18 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 18 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 Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: 9c1a61e5f25e97b1425833c5d4a013e080622927 [PR build]

@dalexsoto dalexsoto merged commit 09e3634 into xcode27.0 Jul 9, 2026
56 checks passed
@dalexsoto dalexsoto deleted the dev/alex/xc27-appkit branch July 9, 2026 11:58
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