Skip to content

Commit

Permalink
fix(cli): iOS app signature not retaining entitlements, closes #11089 (
Browse files Browse the repository at this point in the history
…#11184)

* fix(cli): iOS app signature not retaining entitlements, closes #11089

The IPA does not retain the entitlements as a regression from #10854 which removed the signing step from the build() and archive(), deferring to the export() call

To retain the entitlements we need to force sign one of the files in the app bundle. The most reliable way to do this is to use a self signed certificate as a dummy signature - it is replaced by the export() call so we do not rely on any user provided certificate

Additionally the export options are incorrectly configuring a manual signing, preventing Xcode from properly managing provisioning profiles, which is also part of the fix

* fix header
  • Loading branch information
lucasfernog authored Oct 1, 2024
1 parent 60a5aea commit f5d6182
Show file tree
Hide file tree
Showing 10 changed files with 1,880 additions and 130 deletions.
6 changes: 6 additions & 0 deletions .changes/fix-ios-app-export.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---

Fix iOS application not including the provided capabilities (entitlements).
5 changes: 5 additions & 0 deletions .changes/self-signed-cert.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-macos-sign": patch:enhance
---

Added `Keychain::with_certificate_file` and `certificate::generate_self_signed`.
Loading

0 comments on commit f5d6182

Please sign in to comment.