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.

Unable to write file even with right entitlement option.

See original GitHub issue

Here is my parent.plist file contents:

<!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.application-groups</key>
    <string>GROUP.STRINGHERE</string>
    <key>com.apple.security.files.user-selected.read-write</key>
    <true/>
  </dict>
</plist>

Here is my child.plist file

<?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.inherit</key>
    <true/>
  </dict>
</plist>

My signing command:

electron-osx-sign \"XXXX-mas-x64/XXXX.app\" --verbose --identity=\"****\" --entitlements=./entitlements/parent.plist --entitlements-inherit=./entitlements/child.plist --platform=mas --version=1.0.2 --provisioning-profile=./XXXXX.provisionprofile --type=development

Error that I am getting:

deny file-write-create App doesn’t have permission to write file.

The file is being saved from a user dialog, they select location and file if written to that location.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
chrybcommented, Sep 8, 2017

@trigun539 I have found the problem. It has nothing to do with electron-osx-sign, however, it’s caused through jetpack-fs. Jetpack has an atomic mode to save files securely, but this creates a new temporary file. The sandbox doesn’t allow to create this file. I will add an issue to the jetpack repo.

2reactions
trigun539commented, Sep 1, 2017

@chryb the problem is that you depend on the user to “add” the extension themselves. If they don’t add it while in the save popup, then you only have access to “sample” not “sample.md”. I kept trying to add the extension programatically and failed because I didn’t have access.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to write file even with right entitlement option. #147
Error that I am getting: deny file-write-create App doesn't have permission to write file. The file is being saved from a user dialog,...
Read more >
Signing failed: Provisioning profi… | Apple Developer Forums
I think it is a bug. I have auto manage provisioning profiles switched on; and with this value added to the entitlement file...
Read more >
Xcode 5: Code signing entitlement errors - Stack Overflow
I constantly get the following error: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that...
Read more >
FAQs - Rights Entitlement Trading - NSE
Whether any persons who are not existing shareholders of the issuer company as on record date, can apply to the Rights Issue? Yes....
Read more >
FINRA Entitlement Program: Entitlement Reference Guide
Step 4: Identify SAA, AA or non-admin accounts. Select the User Type of the account you want to see. NOTE: The SAA/AA will...
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