Skip to content

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

Merged
lucasfernog merged 2 commits intodevfrom
fix/ios-entitlements
Oct 1, 2024
Merged

fix(cli): iOS app signature not retaining entitlements, closes #11089#11184
lucasfernog merged 2 commits intodevfrom
fix/ios-entitlements

Conversation

@lucasfernog
Copy link
Member

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

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
@lucasfernog lucasfernog requested a review from a team as a code owner September 30, 2024 23:45
@github-actions
Copy link
Contributor

github-actions bot commented Sep 30, 2024

Package Changes Through 84a6ae2

There are 5 changes which include tauri with prerelease, tauri-cli with prerelease, @tauri-apps/cli with prerelease, tauri-bundler with prerelease, tauri-macos-sign with prerelease

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-macos-sign 0.1.1-rc.0 0.1.1-rc.1
tauri-bundler 2.0.1-rc.14 2.0.1-rc.15
tauri 2.0.0-rc.16 2.0.0-rc.17
@tauri-apps/cli 2.0.0-rc.17 2.0.0-rc.18
tauri-cli 2.0.0-rc.17 2.0.0-rc.18

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

Copy link
Contributor

@tweidinger tweidinger left a comment

Choose a reason for hiding this comment

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

No device to test but looks good to me code wise 👍

@lucasfernog lucasfernog merged commit f5d6182 into dev Oct 1, 2024
@lucasfernog lucasfernog deleted the fix/ios-entitlements branch October 1, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants