Macos Electron应用程序在Apple review中显示空白屏幕
我的electron应用程序被Apple review拒绝,因为它在发布时会显示一个空白的白色屏幕。而我的.app文件在签名之前在本地启动时工作正常。我想在申请书上签字一定有问题。 在main.js中,我也声明了sandbox:trueMacos Electron应用程序在Apple review中显示空白屏幕,macos,electron,code-signing,electron-packager,code-signing-entitlements,Macos,Electron,Code Signing,Electron Packager,Code Signing Entitlements,我的electron应用程序被Apple review拒绝,因为它在发布时会显示一个空白的白色屏幕。而我的.app文件在签名之前在本地启动时工作正常。我想在申请书上签字一定有问题。 在main.js中,我也声明了sandbox:true mainWindow = new BrowserWindow({ show: false, icon: icon, autoHideMenuBar: true, webPreferences: { nativeWind
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>
是否有任何方法可以测试.pkg文件或在提交到存储之前测试它?如果在签署申请时出现任何问题,请更正
electron-osx-sign MyApp-mas-x64/MyApp.app --provisioning-profile=myapp.provisionprofile --entitlements=public/entitlements.mas.plist