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.

Launch nwjs app after signing results in error

See original GitHub issue

nwjs version: v0.18.1 MAS (+libffmeg from same version build OSX flavor) os: macOS 10.12.2 app: Simple app with just index.html and minimal package.json.

If i do not use entitlements while signing the app and children, then it works. If i use entitlements with just sandbox, nwjs prints error to console. The app does not work, but the nwjs does not quit either.

nwjs prints these lines if an app is signed with entitlements:

[20231:33027:0106/152608:ERROR:mach_port_broker.mm(100)] bootstrap_check_in: Permission denied (1100)
[20231:33027:0106/152608:ERROR:mach_broker_mac.mm(52)] Failed to initialize the MachListenerThreadDelegate
[0106/152608:ERROR:mach_port_broker.mm(43)] bootstrap_look_up: Permission denied (1100)
[0106/152611:ERROR:mach_port_broker.mm(43)] bootstrap_look_up: Permission denied (1100)

I use entitlements, provided on NW.js wiki pages:

(master)⚡ [1] % cat plist/child.plist
<?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>%                                                                                                                                                                            (master)⚡ % cat plist/parent.plist
<?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/>
    </dict>
</plist>%

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ggarekcommented, Jan 25, 2017

@ghostoy My app was reviewed successfully and it is in AppStore now. The mas build works. Thank you!

Facy in AppStore

0reactions
sunusleecommented, Aug 21, 2018

@ghostoy " Looks like you didn’t sign with the new signing script. It’s located in mas/build_mas.py within the same package of MAS build.

And we’ll soon publish a new release and doc for detailed usage of MAS build. You can try with the new script. "

hello, what’s the trick you did to make this work ? i’m facing same issue here 😦 with correct entitlements.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NWJS app crashing because of website console errors
I've a NW.JS desktop app keeps crashing because of webpage errors. I'm trying to open this webpage inside my app - URL.
Read more >
Creating cross-platform apps with NW.js - LogRocket Blog
NW.js is a powerful alternative to Electron for native application development that offers a range of great integrations.
Read more >
Manifest Format - NW.js Documentation
Every app package should contain a manifest file named package.json in the format of JSON. This document will help you understand the meaning...
Read more >
Writing and running your first "Hello World" app | NW.js ...
Finally, we are ready to write our first simple application. We're going to revisit the usual "Hello World" application by making use of...
Read more >
Automation of NW.js Application using Selenium WebDriver
I am using chrome driver to drive my NW.js application.I am trying to automate my application which is a standalone Desktop based and...
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