All of lore.kernel.org
 help / color / mirror / Atom feed
From: Loren McQuade <loren.mcquade@gmail.com>
To: wireguard@lists.zx2c4.com
Subject: [PATCH 0/2] iOS 27 build and launch fixes
Date: Sat, 10 Oct 2026 09:03:01 -0700	[thread overview]
Message-ID: <20261010160303.2853-1-loren.mcquade@gmail.com> (raw)

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(-)

-- 
2.54.0 (Apple Git-157)


             reply	other threads:[~2026-10-26 19:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-10 16:03 Loren McQuade [this message]
2026-10-10 16:03 ` [PATCH 1/2] WireGuardKitC: include sys/types.h Loren McQuade
2026-10-10 16:03 ` [PATCH 2/2] iOS: adopt the UIScene lifecycle Loren McQuade
2026-10-27 20:14 ` [PATCH 0/2] iOS 27 build and launch fixes John

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261010160303.2853-1-loren.mcquade@gmail.com \
    --to=loren.mcquade@gmail.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.