Skip to content

[MultipeerConnectivity] Update bindings up to Xcode 27.0 Beta 3 - #26200

Merged
dalexsoto merged 2 commits into
xcode27.0from
dev/alex/xc27-MultipeerConnectivity
Jul 22, 2026
Merged

dalexsoto merged 2 commits into
xcode27.0from
dev/alex/xc27-MultipeerConnectivity

Conversation

@dalexsoto

Copy link
Copy Markdown
Member

Summary

  • mark MCPeerID, MCSession, MCNearbyServiceAdvertiser, MCNearbyServiceBrowser, MCBrowserViewController, and MCAdvertiserAssistant deprecated in Xcode 27.0 across iOS, tvOS, macOS, and Mac Catalyst
  • use Apple’s migration guidance to the Network framework
  • remove the resolved MultipeerConnectivity xtro todo files for all four platforms

Validation

  • fresh make world before changes and full make world after binding changes
  • clean xtro regeneration/classification: sanity passed
  • clean cecil run: 112 passed, 4 skipped, 0 failed
  • macOS introspection: 32 passed, 0 failed; Mac Catalyst introspection: 39 passed, 0 failed
  • iOS/tvOS introspection completed with unrelated Xcode 27 beta-runtime gaps in LinkSecurity, UIKit, AVFoundation, Metal, CarPlay, and AVKit; no MultipeerConnectivity failure was reported
  • clean app-size run: 16 expected skips because Xcode 27 is beta, 0 failed

Mark the six MultipeerConnectivity classes reported by xtro as deprecated on iOS, tvOS, macOS, and Mac Catalyst as of version 27.0. Match the native SDK guidance to migrate to the Network framework.

Remove the resolved per-platform xtro todo files after regenerating and validating the annotations for every supported platform.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 755e30ea-8c95-4109-9c0a-aa8ae7975b20
Copilot AI review requested due to automatic review settings July 20, 2026 23:14
@dalexsoto dalexsoto added this to the xcode27 milestone Jul 20, 2026
@dalexsoto
dalexsoto requested a review from rolfbjarne July 20, 2026 23:15

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 MultipeerConnectivity bindings to reflect Xcode 27.0 Beta 3 SDK metadata by marking key public types as deprecated and cleaning up the corresponding xtro “todo” suppression files.

Changes:

  • Marked MCPeerID, MCSession, MCNearbyServiceAdvertiser, MCNearbyServiceBrowser, MCBrowserViewController, and MCAdvertiserAssistant as deprecated on iOS/tvOS/macOS/Mac Catalyst (27.0).
  • Removed resolved xtro todo files for MultipeerConnectivity on all four platforms.

Reviewed changes

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

Show a summary per file
File Description
src/multipeerconnectivity.cs Adds [Deprecated] attributes for key MultipeerConnectivity types across all platforms.
tests/xtro-sharpie/api-annotations-dotnet/iOS-MultipeerConnectivity.todo Deletes resolved xtro todo entries after deprecation attributes were added.
tests/xtro-sharpie/api-annotations-dotnet/tvOS-MultipeerConnectivity.todo Deletes resolved xtro todo entries after deprecation attributes were added.
tests/xtro-sharpie/api-annotations-dotnet/macOS-MultipeerConnectivity.todo Deletes resolved xtro todo entries after deprecation attributes were added.
tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-MultipeerConnectivity.todo Deletes resolved xtro todo entries after deprecation attributes were added.

Comment thread src/multipeerconnectivity.cs Outdated
Comment thread src/multipeerconnectivity.cs Outdated
Comment thread src/multipeerconnectivity.cs Outdated
Comment thread src/multipeerconnectivity.cs Outdated
Comment thread src/multipeerconnectivity.cs Outdated
Comment thread src/multipeerconnectivity.cs Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@dalexsoto
dalexsoto enabled auto-merge (squash) July 20, 2026 23:24
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@dalexsoto

Copy link
Copy Markdown
Member Author

/azp run xamarin-macios-sim-pr-tests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@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: 966f7cc95666adf0926c09964990868e5f161864 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@dalexsoto

Copy link
Copy Markdown
Member Author

/azp run xamarin-macios-sim-pr-tests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@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 #966f7cc] 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. [attempt 3] 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. [attempt 2] 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. [attempt 2] 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: 966f7cc95666adf0926c09964990868e5f161864 [PR build]

@dalexsoto
dalexsoto merged commit 5893893 into xcode27.0 Jul 22, 2026
55 checks passed
@dalexsoto
dalexsoto deleted the dev/alex/xc27-MultipeerConnectivity branch July 22, 2026 01:28
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