osx-sign icon indicating copy to clipboard operation
osx-sign copied to clipboard

Rethink --pre-auto-entitlements (merge entitlement entries from provisioning profile)

Open sethlu opened this issue 6 years ago • 2 comments
trafficstars

Here's what electron-osx-sign does a little differently: Since Electron supports macOS features like Handoff, when app sandbox is enabled, electron-osx-sign (default with --pre-auto-entitlements) will automatically inject com.apple.developer.team-identifier into the entitlements to enable these features... and this entry must be whitelisted by a provisioning profile.

Therefore, electron-osx-sign requires provisioning profiles whenever app sandbox is enabled (applicable to MAS development and distribution). They will be picked up automatically if placed in the current working directory.

🤔 I think the this entitlements automation behavior will likely change in a next major release of electron-osx-sign so the presence of provisioning profile should be what adds in the whitelisted entitlement entries, instead of when app sandbox is enabled.

Originally posted by @sethlu in https://github.com/electron-userland/electron-builder/issues/897#issuecomment-487414713

sethlu avatar Apr 28 '19 21:04 sethlu

I get the same issue. Is there any enhancement in the entitlements automation?

jabetong1 avatar May 08 '19 04:05 jabetong1

@jabetong1 I'm not sure which issue you're encountering, but a solution is discussed in the original comment https://github.com/electron-userland/electron-builder/issues/897#issuecomment-487414713

sethlu avatar May 08 '19 06:05 sethlu