Skip to content

Suppress SCNetworkReachability deprecation warnings#1430

Closed
bmehta001 wants to merge 1 commit into
microsoft:mainfrom
bmehta001:bhamehta/issue-1425-off-1418
Closed

Suppress SCNetworkReachability deprecation warnings#1430
bmehta001 wants to merge 1 commit into
microsoft:mainfrom
bmehta001:bhamehta/issue-1425-off-1418

Conversation

@bmehta001

@bmehta001 bmehta001 commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Add a file-level pragma to suppress all SCNetworkReachability deprecation warnings in ODWReachability.m. This entire file is a third-party reachability wrapper that uses these APIs pervasively (50+ call sites). The APIs were deprecated in iOS 17.4 and trigger -Werror build failures in Xcode 26.4+.

A single file-level suppression is cleaner than wrapping each individual call site (the file already had ~15 per-site pragma pairs from earlier fixes).

A full migration to NWPathMonitor is tracked separately; this unblocks the build.

Fixes #1425

@bmehta001 bmehta001 requested a review from a team as a code owner April 29, 2026 21:52
Add pragma to suppress SCNetworkReachability deprecation warnings in
ODWReachability.m. These APIs (SCNetworkReachabilityCreateWithName,
SCNetworkReachabilityCreateWithAddress) were deprecated in iOS 17.4
and trigger -Werror build failures in Xcode 26.4+.

A full migration to NWPathMonitor is tracked separately; this unblocks
the build.

Fixes microsoft#1425

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bmehta001 bmehta001 force-pushed the bhamehta/issue-1425-off-1418 branch from 2efd18f to b4a3fa3 Compare April 29, 2026 21:56
@bmehta001

Copy link
Copy Markdown
Contributor Author

Superseded by a proper NWPathMonitor migration instead of pragma suppression.

@bmehta001 bmehta001 closed this Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS deprecated method warning

1 participant