Macos 如何为NWJS准备向mac app store提交应用程序的权利?

Macos 如何为NWJS准备向mac app store提交应用程序的权利?,macos,mac-app-store,appstore-sandbox,nwjs,mach,Macos,Mac App Store,Appstore Sandbox,Nwjs,Mach,我在MacOS 10.14.3上使用NWJS 0.36的shell脚本对NWJS应用程序包的文件进行了签名。我想将NWJS应用程序上载到Mac应用程序商店。但是,该应用程序在签名并尝试运行后崩溃。我认为这是由于在沙盒权限中缺乏权限造成的 可以通过使用MacOs开发者身份对默认的nwjs.app for MacOs进行签名而不进行修改,从而复制此问题。我在脚本中包含的文件列表是MacOS“application loader”(应用程序检查包提交到Mac App store)列出的文件。应用程序要

我在MacOS 10.14.3上使用NWJS 0.36的shell脚本对NWJS应用程序包的文件进行了签名。我想将NWJS应用程序上载到Mac应用程序商店。但是,该应用程序在签名并尝试运行后崩溃。我认为这是由于在沙盒权限中缺乏权限造成的

可以通过使用MacOs开发者身份对默认的nwjs.app for MacOs进行签名而不进行修改,从而复制此问题。我在脚本中包含的文件列表是MacOS“application loader”(应用程序检查包提交到Mac App store)列出的文件。应用程序要求程序列表应包括沙盒/

这是我的孩子,普利斯特

<?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>

com.apple.security.app-sandbox
com.apple.security.inherit
在对程序和父包进行签名后,当我尝试运行应用程序时,应用程序立即崩溃。当使用“nwjs”或“process:sandboxd”进行筛选时,我可以在控制台中找到错误

我认为主要的错误是:

沙盒:nwjs(4602)拒绝(1)网络绑定

/private/var/folders/kt/c216x7lx2qg87zhlwx46l6zr0000gn/T/io.nwjs.nwjs/.io.nwjs.nwjs.5zPGi8/SingletonSocket

我也会遇到这样的错误:

沙盒:nwjs(4676)拒绝(1)文件读取数据 /用户/nicolasguerinet/Library/Preferences/com.apple.LaunchServices/com.apple.LaunchServices.secure.plist

沙盒:nwjs(4676)拒绝(1)马赫寄存器io.nwjs.nwjs.rohitfork.4676

沙盒:nwjs(4676)拒绝(1)马赫寄存器 io.nwjs.nwjs.FieldTrialMemoryServer.4676

[0210/214619.981611:错误:mach_extensions.cc(68)]引导检查 org.chromium.crashpad.child_port_handshake.6116.258959.GPSJQYHPOAJCMUEY: 拒绝许可(1100)

申请表中的两项:

[0210/210429.187708:错误:目录\读取器\ posix.cc(42)]opendir:不允许操作(1)

[0210/214620.466617:错误:mach_port_broker.mm(43)]引导查找: 拒绝许可(1100)

我猜parents.plist中缺少一些权限,应该将它们添加到parent.plist中,以便在代码签名后运行Nwjs


更新: 我已将以下内容添加到我的parents.plist中,但未成功:

<key>com.apple.security.temporary-exception.sbpl</key>
<array>

        <string>(allow ipc-posix-sem)</string>
        <string>(allow file-issue-extension)</string>
        <string>(allow mach-lookup)</string>
        <string>(allow file-write-create)</string>
        <string>(allow file-read-data)</string>

</array>
com.apple.security.temporary-exception.sbpl
(允许ipc posix sem)
(允许文件发行扩展名)
(允许马赫数查找)
(允许文件写入和创建)
(允许文件读取数据)

你解决过这个问题吗?@ZayinKrige不幸没有。你解决过这个问题吗?@ZayinKrige不幸没有。
<key>com.apple.security.temporary-exception.sbpl</key>
<array>

        <string>(allow ipc-posix-sem)</string>
        <string>(allow file-issue-extension)</string>
        <string>(allow mach-lookup)</string>
        <string>(allow file-write-create)</string>
        <string>(allow file-read-data)</string>

</array>