How can I check to apply parent and child.plist
See original GitHub issueI used electron-osx-sign plugin to sign for my app. However, App submission is rejected.
App reviewers, they executed my app and try to log in using accounts and password provided by our development team. But reviewers said that my app cannot fetch next content and there is just loading panel in login view. I think that this loading panel is shown during asynchronous request using axios to get authentication.
I checked Electron guide in more detail. https://electronjs.org/docs/tutorial/mac-app-store-submission-guide I noticed that I did not create .plist files(parent.plist, child.plist) and also didn’t add some below keys into parent.plist.
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
So, I create two plist files and add above keys into parent.plist. and then, I use below commend when I signed with electron-osx-sign plugin.
electron-osx-sign MyApp.app --entitlements="parent.plist" --entitlements-inherit="child.plist"
So, I got question, Do these above keys make the server request(or get response) possible? (My app also has websocket functionality).
If so, How can I know that these changes are well reflected? I opened contents in my app(open package), I can still see that there was only info.plist file.
Thanks.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Yep!
electron-osx-sign
will automatically use the template https://github.com/electron-userland/electron-osx-sign/blob/master/default.entitlements.mas.inherit.plist when signing a MAS build of Electron.Let us know if your submission was successful 😺
Great question! I think the
parent.plist
should look like the following. I think even only having the network client entitlement key should work with web socket.And you won’t need to manually provide the child entitlements file as the default one would work fine 😸 The entitlement entries will be recorded in the executable program and won’t be available as plain text like
Info.plist
.If you run
export DEBUG=electron-osx-sign*
before runningelectron-osx-sign
, you can find the actual signed entitlements at the end of the log. Alternatively you may runcodesign -d --entitlements :- path/to/my.app
to display all entitlements on the app bundle.