Skip to content

fix(apple): suppress legacy SCNetworkReachabilityGetFlags warning#4

Open
bmehta001 wants to merge 3 commits intobhamehta/issue-1418-mainfrom
bhamehta/issue-1425-off-1418
Open

fix(apple): suppress legacy SCNetworkReachabilityGetFlags warning#4
bmehta001 wants to merge 3 commits intobhamehta/issue-1418-mainfrom
bhamehta/issue-1425-off-1418

Conversation

@bmehta001
Copy link
Copy Markdown
Owner

Summary

  • suppress the legacy SCNetworkReachabilityGetFlags warning with a narrow, backwards-compatible fix
  • preserve existing reachability behavior
  • keep this stacked follow-up scoped to the Apple legacy path

Testing

  • targeted xcrun clang compile against the iPhoneSimulator 26.4 SDK with -Werror -Wdeprecated-declarations

Stack

  • base branch: copilot/issue-1418-main

Refs microsoft#1425

@bmehta001 bmehta001 force-pushed the bhamehta/issue-1425-off-1418 branch 2 times, most recently from 7b3c0e0 to 8c7b8a0 Compare April 24, 2026 14:17
@bmehta001 bmehta001 force-pushed the bhamehta/issue-1425-off-1418 branch from 8c7b8a0 to 8a05179 Compare April 27, 2026 17:12
bmehta001 and others added 2 commits April 29, 2026 15:57
* Modernize CI workflows and fix iOS simulator selection

- Update Actions to latest versions (checkout@v4, setup-java@v5, etc.)
- Add concurrency groups scoped to PR events only (push builds on main
  always run to completion)
- Add 30-minute timeout to iOS CI to prevent deadlock hangs
- Fix iOS simulator UUID resolution for unambiguous destination
- Fix Android SDK path detection in CodeQL workflow
- Document python3 requirement for iOS tests

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

* Fix compiler flags and scope -Wno-reorder

- Split GCC/Clang warning flags (Clang-only flags were breaking GCC)
- Add -fno-finite-math-only to restore IEEE 754 compliance needed by
  sqlite3 when -ffast-math is enabled
- Remove global -Wno-reorder, scope to Sanitizer.cpp only (submodule
  declares members in wrong order)

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

* Improve iOS test script and documentation

- Resolve simulator UUID for unambiguous xcodebuild destination
- Add python3 dependency documentation
- Update iOS getting-started docs

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

* Fix flaky functional tests for iOS simulator CI

- Use unique phase2 DB paths instead of sleep to avoid SQLite vnode
  collisions from deferred sqlite3_close_v2 cleanup
- Clean SQLite journal files (-wal, -shm, -journal) in CleanStorage
- Fix cross-test config contamination (reset storage settings)
- Use sleep(10) instead of yield() in waitForEvents to reduce CPU
  contention on single-core simulator runners
- Increase timeouts for iOS simulator environment
- Fix multi-batch upload flakiness with SetTransmitProfile(RealTime)
- Use 127.0.0.1 instead of localhost for local test server

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Remove private in6 header includes

Remove the dead netinet6/in6.h imports from ODWReachability and its Objective-C unit test so Apple builds no longer fail on the private-header error from main.

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

* Remove dead reachability imports

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

* Restore explicit reachability socket headers

Add back the canonical sys/socket.h and netinet/in.h includes in ODWReachability.m and ODWReachabilityTests.mm while keeping the other dead imports removed. This avoids relying on transitive Apple headers in the reachability PR review.

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

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bmehta001 bmehta001 force-pushed the bhamehta/issue-1425-off-1418 branch from 8a05179 to 2efd18f Compare 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
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.

1 participant