Skip to content

deps(netwatch): bump netdev to 0.46.1 so iOS 15-17 apps can launch - #208

Closed
otech47 wants to merge 1 commit into
n0-computer:mainfrom
fedibtc:netwatch/netdev-0.46
Closed

deps(netwatch): bump netdev to 0.46.1 so iOS 15-17 apps can launch#208
otech47 wants to merge 1 commit into
n0-computer:mainfrom
fedibtc:netwatch/netdev-0.46

Conversation

@otech47

@otech47 otech47 commented Aug 17, 2026

Copy link
Copy Markdown

Description

Closes #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

  • fedi hit this on a real release: every iPhone on iOS 15, 16 or 17 crashed on launch after a dependency bump pulled iroh 1.0 in
  • a patch release of netwatch would let downstream drop their [patch.crates-io] pins

Change checklist

  • Self-review
  • Documentation updates following the style guide, if relevant
  • Tests if relevant
  • All breaking changes documented

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.
@n0bot n0bot Bot added this to iroh Aug 18, 2026
@github-project-automation github-project-automation Bot moved this to 🚑 Needs Triage in iroh Aug 18, 2026
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 matheus23 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 👍

@Frando Frando mentioned this pull request Aug 18, 2026
4 tasks
@github-project-automation github-project-automation Bot moved this from 🚑 Needs Triage to ✅ Done in iroh Aug 19, 2026
@otech47

otech47 commented Aug 19, 2026

Copy link
Copy Markdown
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.

@matheus23

Copy link
Copy Markdown
Member

I think the current plan was sometime next week ✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

netwatch: bump netdev to 0.46 to drop the default CoreWLAN XPC round-trip (apple-wifi-extra is now opt-in)

2 participants