Skip to content

[Foundation] Update bindings up to Xcode 27.0 Beta 3#26159

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

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

Conversation

@dalexsoto

Copy link
Copy Markdown
Member

Summary

  • deprecate the NSBundle on-demand resource APIs and NSBundleResourceRequest in favor of Background Assets
  • deprecate legacy NSItemProvider item initialization, registration, and loading APIs in favor of the managed object-based APIs
  • remove the resolved Foundation xtro todo files for every supported platform

Validation

  • make world before implementation and after the binding changes
  • clean xtro generation/classification: sanity passed
  • clean cecil tests: 112 passed, 4 skipped
  • clean AppSizeTest run: 16 expected skips under beta Xcode, 0 failures
  • iOS 27 Beta 3 introspection: 44 passed
  • tvOS 27 Beta 3 introspection: 43 passed
  • macOS introspection: 32 passed, 2 expected host-version ignores
  • Mac Catalyst introspection: 39 passed, 4 expected ignores

Deprecate the NSBundle on-demand resource APIs and NSBundleResourceRequest in favor of Background Assets on iOS, tvOS, and Mac Catalyst.

Deprecate the legacy NSItemProvider item initializer, registration, and loading APIs on every supported platform, directing callers to the managed object-based replacements.

Remove the resolved Foundation xtro todo files for iOS, tvOS, macOS, and Mac Catalyst.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9025784a-4e08-4eb1-885b-e49bd5f0e623
Copilot AI review requested due to automatic review settings July 17, 2026 03:53
@dalexsoto
dalexsoto requested a review from rolfbjarne as a code owner July 17, 2026 03:53
@dalexsoto dalexsoto added this to the xcode27 milestone Jul 17, 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.

Pull request overview

Updates the Foundation bindings to align with Xcode 27.0 Beta 3 by marking newly-deprecated APIs and cleaning up resolved XTRO annotation TODOs.

Changes:

  • Added [Deprecated] attributes for NSBundle on-demand resource APIs and NSBundleResourceRequest in favor of Background Assets.
  • Added [Deprecated] attributes for legacy NSItemProvider initializer/registration/loading APIs in favor of the object-based APIs.
  • Removed now-resolved Foundation.todo files from xtro-sharpie for all supported platforms.

Reviewed changes

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

Show a summary per file
File Description
src/foundation.cs Adds deprecation annotations for Xcode 27.0 Beta 3 Foundation API deprecations (NSBundle ODR APIs, NSBundleResourceRequest, NSItemProvider legacy APIs).
tests/xtro-sharpie/api-annotations-dotnet/iOS-Foundation.todo Removed resolved TODO entries (file removed).
tests/xtro-sharpie/api-annotations-dotnet/tvOS-Foundation.todo Removed resolved TODO entries (file removed).
tests/xtro-sharpie/api-annotations-dotnet/macOS-Foundation.todo Removed resolved TODO entries (file removed).
tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Foundation.todo Removed resolved TODO entries (file removed).

@dalexsoto
dalexsoto enabled auto-merge (squash) July 17, 2026 05:20
@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: 05b0ed5c32557558310e6f36d2c8d80923e08267 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

1 similar comment
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [CI Build #05b0ed5] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 195 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. [attempt 4] 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. [attempt 2] 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. [attempt 2] 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. 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): Tests skipped, incorrect beta version. Html Report (VSDrops) Download

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: 05b0ed5c32557558310e6f36d2c8d80923e08267 [PR build]

@dalexsoto
dalexsoto merged commit b78bfd9 into xcode27.0 Jul 18, 2026
56 checks passed
@dalexsoto
dalexsoto deleted the dev/alex/xc27-Foundation branch July 18, 2026 05:45
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