iOS 27 build and launch fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | WireGuardKitC: include sys/types.hSources/ | +2 | 0 replies | |
| 2/2 | iOS: adopt the UIScene lifecycleSources/ Sources/ Sources/ | +79 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | John Audia |
|---|---|
| Series | T-b T-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] iOS 27 build and launch fixes
Two small fixes for building and running the iOS app with the iOS 27 SDK.
1/2 WireGuardKitC fails to build because u_int32_t, u_char and u_int16_t are not visible to the module without including <sys/types.h>.
2/2 An app built with the iOS 27 SDK that has no UIScene manifest is killed at launch (EXC_BREAKPOINT in UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption). This moves the window into a SceneDelegate. The app delegate's state restoration is not called once scenes are in use, and a scene's restoration activity was not handed back after a force-quit when I tried it (the scene saved one, session.stateRestorationActivity was nil on the next launch), so the open tunnel is remembered in UserDefaults instead. I'm happy to do that differently if you'd prefer.
Tested on an iPhone 15 Pro running iOS 27.0: the app launches, importing a .conf from Files works, quick actions work, and the last open tunnel comes back after a force-quit and relaunch. The iOS app archives and the macOS target builds with Xcode 27. Not tested: iPad, or any iOS before 27.0. swiftlint reports nothing in the changed files.
I'll send a separate message about a tunnel stall I see on cellular.
Loren McQuade (2):
WireGuardKitC: include sys/types.h
iOS: adopt the UIScene lifecycle
Sources/WireGuardApp/UI/iOS/AppDelegate.swift | 100 +++++++++--------- Sources/WireGuardApp/UI/iOS/Info.plist | 17 +++ .../ViewController/MainViewController.swift | 13 +++ Sources/WireGuardKitC/WireGuardKitC.h | 2 + 4 files changed, 81 insertions(+), 51 deletions(-)
Signature · 1 line
2.54.0 (Apple Git-157)