我的电子应用程序被Apple审查拒绝,因为它在审查时在启动时显示空白的白屏。而我的.app文件在签名之前在本地启动时运行良好。我认为签署申请书一定有问题。 在main.js中,我还声明了sandbox:true。
mainWindow = new BrowserWindow({
show: false, icon: icon,
autoHideMenuBar: true,
webPreferences: {
nativeWindowOpen: true,
nodeIntegration: true,
sandbox:true
}
});
我的权利文件如下:
<?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.application-groups</key>
<string>xxxx</string>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
<key>com.apple.security.personal-information.location</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
</dict>
</plist>
对应用进行签名的命令:
electron-osx-sign MyApp-mas-x64/MyApp.app --provisioning-profile=myapp.provisionprofile --entitlements=public/entitlements.mas.plist
在提交存储之前,有什么方法可以测试.pkg文件或对其进行测试?如果在签署申请时有任何问题,请更正。