deps(netwatch): bump netdev to 0.46.1 so iOS 15-17 apps can launch - #208
Closed
otech47 wants to merge 1 commit into
Closed
deps(netwatch): bump netdev to 0.46.1 so iOS 15-17 apps can launch#208otech47 wants to merge 1 commit into
otech47 wants to merge 1 commit into
Conversation
netdev 0.45 declares nw_path_is_ultra_constrained in an extern block. Apple ships that symbol from iOS 18.1, so any app linking netwatch on an older deployment target is killed by dyld before main. netdev 0.46.1 removed the binding (shellrow/netdev#182, n0-computer#184). Closes n0-computer#207.
otech47
pushed a commit
to fedixyz/fedi
that referenced
this pull request
Aug 18, 2026
## Description - ref fedibtc/product-delivery#50 - since nightly build 262060211 (2026-07-25), iOS kills the app the moment you tap the icon on any iPhone running iOS 15, 16 or 17. no splash, no error dialog from us, every launch. the build before it, 262050209, is fine. release/26.8 has the same bug - #11757 moved the fedimint pin. that took iroh from 0.96 to 1.0, netwatch to 0.19, and netdev to 0.45. netdev 0.45 declares `nw_path_is_ultra_constrained` in an extern block. Apple ships that symbol from iOS 18.1, so dyld cannot bind it on older iOS and kills the process before `main`. our deployment target is 15.1 - upstream removed the binding in netdev 0.46.1 (shellrow/netdev#184), but netwatch 0.19.1 requires `^0.45.0` and cargo will not resolve 0.46. the first commit pins netdev to that same upstream commit cherry-picked onto 0.45.0 in a fedibtc mirror. only the netdev source line moves in `Cargo.lock`. the pin comes out once netwatch releases with 0.46 (n0-computer/net-tools#207, PR n0-computer/net-tools#208) - the second commit makes `build-bridge-ios.sh` fail if any built `libfediffi.a` imports a Network.framework symbol newer than the deployment target. the denylist is every such function defined on the iOS 18.1 simulator runtime and absent on 15.5, generated from Apple's binaries, so it catches the next symbol and not only this one. it runs for the simulator targets too, so a dev machine trips before TestFlight does - this is a different bug from the A7-A10 crash in #11614 and #11601. that one is a CPU instruction and needs an iPhone 7 to reproduce. this one is a missing symbol and reproduces on the iOS 15.5 simulator ## Testing - `nw_path_is_ultra_constrained` is defined in the iOS 18.1 simulator runtime and absent from 15.5, 17.0 and 17.5, checked with `nm` on Network.framework and libnetwork.dylib - the guard fails on a static lib compiled to import that symbol and passes one that imports only iOS 15 APIs - TestFlight build with the pin: run 32081869816 ## Impact on native/web parity - native only. web does not link the bridge ## QA Testing Guidance - install the TestFlight build from run 32081869816 on an iPhone on iOS 15, 16 or 17. it should reach the splash and the wallet. every build since 262060211 crashes on tap - iOS 17 is the most useful check. it was never in the original report and is affected the same way - backport to release/26.8 follows once this merges. 26.8 does not ship without it source commit: 1cce807eec21c47d6b9ec5e32fe5c1fd3ad96873
matheus23
approved these changes
Aug 18, 2026
matheus23
left a comment
Member
There was a problem hiding this comment.
Thank you for the PR!
quick-xml can now be removed from the deny.toml with the updated netdev. Other than that this looks good to go 👍
Author
|
Thanks for merging this via #209, and for catching the quick-xml cleanup in deny.toml too. One question on timing: any idea when the next netwatch release will be cut with the netdev 0.46.1 bump? We're carrying a temporary fork/pin on our end just to get the fix and would like to drop it once a real release is out. |
Member
|
I think the current plan was sometime next week ✌️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
main, withSymbol not found: _nw_path_is_ultra_constrainedextern "C"block, which is a strong import. Apple ships it from iOS 18.1. In the simulator runtimes Xcode installs it is absent from Network.framework on iOS 15.5, 17.0 and 17.5 and defined on 18.1 and up. nw_path_is_ultra_constrained unavailable < iOS 26 shellrow/netdev#182 says "below iOS 26". The real boundary is 18cargo check -p netwatchpasses on the host and onaarch64-apple-iosCloses #207, which asked for the same bump for the macOS XPC reason.
Breaking Changes
None. netwatch mirrors netdev's types and does not expose them.
Notes & open questions
[patch.crates-io]pinsChange checklist