-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix PacketTunnelProvider embedding for Alpha builds #1932
Fix PacketTunnelProvider embedding for Alpha builds #1932
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the embed step is failing for regular builds - CI stopped at the embed step, and I see the same thing locally when deploying to a physical device.
Oh that’s weird, I could have sworn I tested this…. |
I see… it was working, then I tested a change to it to test out my stackoverflow answer… then I didn’t revert properly. Oops! Fixed it now I think... |
…nel-provider-embed-for-release-builds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Tested regular builds and archives, and archiving the Alpha configuration. Confirmed that the Alpha build contains the packet tunnel provider (and that it looks legit), and that the regular release archive does not.
* develop: (84 commits) Improve Sync-related database cleaning logic (#1933) Fix PacketTunnelProvider embedding for Alpha builds (#1932) Add alpha specific app groups (#1934) Replaces useSystemKeychain with keychain type (#1928) Add Commit hook install script (#1845) Run checks on all PRs (#1929) extend valid urls to include IPv6 (#1919) Status view error UI (#1915) NetP Design Review minus errors (#1923) Add a GHA job to build the app in release configuration (#1848) Release 7.85.0 (#1926) Update WireGuard version (#1918) BSK Hotfix 74.0.1-1 (#1924) Post merge PR check (#1920) Autofill letter icons for macOS (#1911) Alpha build readiness (#1913) bump C-S-S to 4.32.0 (#1914) Update NetP endpoint (#1905) Network Protection debug menu (#1910) Add support for syncing Credentials (#1844) ...
Task/Issue URL: https://app.asana.com/0/0/1205324333927521/f
Description:
On trying to distribute NetP through the Alpha channel, the build were being rejected by App Store Connect as their was an invalid file containing the word app. This turned out to be because the simple cp -r I was doing to move the extension was in fact not moving the extension for Archive builds, but an alias.
I had another look at the build output of Xcode’s Embed App Extensions Build Phase which uses an Xcode-internal tool builtin-copy. rsync achieves the same result and has broadly the same options. The --copy-links option is needed to resolve symlinked .appex bundles.
Edit:
This is now stacked on #1934 as its update of the provisioning profiles requires the update of Alpha entitlements
Steps to test this PR:
Products/Applications/DuckDuckGo/PlugIns
and ensure thePacketTunnelProvider.appex
is an actual bundle and not an alias.Copy Testing:
’
rather than’
Orientation Testing:
Device Testing:
OS Testing:
Theme Testing:
—
Internal references:
Software Engineering Expectations
Technical Design Template