question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I check to apply parent and child.plist

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sethlucommented, May 7, 2019

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 😺

2reactions
sethlucommented, May 4, 2019

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.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>com.apple.security.app-sandbox</key>
    <true/>
    <key>com.apple.security.network.client</key>
    <true/>
    <key>com.apple.security.network.server</key>
    <true/>
  </dict>
</plist>

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 running electron-osx-sign, you can find the actual signed entitlements at the end of the log. Alternatively you may run codesign -d --entitlements :- path/to/my.app to display all entitlements on the app bundle.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I check to apply parent and child.plist #193 - GitHub
I used electron-osx-sign plugin to sign for my app. However, App submission is rejected. App reviewers, they executed my app and try to...
Read more >
Use parental controls on your child's iPhone, iPad, and iPod ...
Tap Turn on Screen Time, then tap it again. Choose "This is My [Device]" or "This is My Child's [Device]." If you're the...
Read more >
Accessing Child.plist of Settings.bundle in iPhone application
Any kind of new Project Template from File ( Under iPhone OS ) - preferable View based. · Expand Settings. · Now, Right...
Read more >
Adding A Second .Plist As Child Pane - ADocLib
I can think of at least two ways of getting the info using AppleScript one using the file and plist read functions and...
Read more >
OneAgent SDK for iOS | Dynatrace Docs
Use the OneAgent SDK for iOS to report additional details about the user ... When a parent action is closed, OneAgent automatically closes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found