You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the code of conduct that this project uses.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
Forge version
7.8.0
Electron version
35.2.0
Operating system
macOS 15.4.1
Last known working Forge version
No response
Expected behavior
I expect my app, that has passed through Package -> Make -> Transporter -> App Store Connect -> Testflight without issues to open after isntallation.
Actual behavior
The app icon in the Dock appears, jumps a little, then disappears and I get a crash report.
Steps to reproduce
The app is the stock-standard template of "Hello World" that Electron Forge provides when you create a proejct. I ahve not touched that code.
I make the .pkg with npm run make -- --platform=mas --arch=universal and then upload to App Store Connect via Transporter. I then see the new build in testflight, press install, with no issues, and then I press open, and the crash happens.
And I did find one very similiar issue: #2943 - but that was closed due to being fixed in osxSign electron/osx-sign#292 by @quanglam2807 and @erickzhao - yet I'm still experiencing the similar issue two years later, might have been reintroduced in later version, who knows. Any help would be greatly appriciated.
Thank you for taking the time, you guys are the best!
module.exports = {
packagerConfig: {
appBundleId: "com.ABCcompany.thebestApp", // ADD BUNDLE ID
asar: true,
osxSign: {
optionsForFile: filePath => {
const name = path.basename(filePath);
if (name === 'thebestApp.app') { // ADD YOUR APP.app
return {
entitlements: path.resolve(__dirname, 'build/entitlements.mas.plist'),
entitlementsInherit: path.resolve(__dirname, 'build/entitlements.mas.inherit.plist'),
hardenedRuntime: true,
};
}
// This add the entitlements to ANY helper: “Helper.app”, “Helper (GPU).app”, “Helper (Renderer).app”, etc.
if (name.match(/Helper(?: \(.+\))?\.app$/)) {
return {
entitlements: path.resolve(__dirname, 'build/entitlements.mas.loginhelper.plist'),
entitlementsInherit: path.resolve(__dirname, 'build/entitlements.mas.inherit.plist'),
hardenedRuntime: true,
};
}
// (catch the rest, if any (there should not be any))
return {
entitlements: path.resolve(__dirname, 'build/entitlements.mas.plist'),
hardenedRuntime: true,
};
}
},
},
This has made so that I ahve now, with the tempalte "Hello World" provided in new forge project, managed to
[ ✓ ] npm run make -- --platform=mas --arch=universal
[ ✓ ] Upload the -pkg created to Transporter
[ ✓ ] Install the app via Testflight
[ ✓ ] Open the app without crash
I have yet to apply this knowledge to my actual app, but this seems to have solved the core issue. Leaving this issue open as I hope it can be baked-in to the deafult mas build for osxSign/Forge so no custom entitlements are nesseceary.
Pre-flight checklist
Forge version
7.8.0
Electron version
35.2.0
Operating system
macOS 15.4.1
Last known working Forge version
No response
Expected behavior
I expect my app, that has passed through Package -> Make -> Transporter -> App Store Connect -> Testflight without issues to open after isntallation.
Actual behavior
The app icon in the Dock appears, jumps a little, then disappears and I get a crash report.
Steps to reproduce
The app is the stock-standard template of "Hello World" that Electron Forge provides when you create a proejct. I ahve not touched that code.
I make the .pkg with
npm run make -- --platform=mas --arch=universal
and then upload to App Store Connect via Transporter. I then see the new build in testflight, press install, with no issues, and then I press open, and the crash happens.Additional information
`
And I did find one very similiar issue: #2943 - but that was closed due to being fixed in osxSign electron/osx-sign#292 by @quanglam2807 and @erickzhao - yet I'm still experiencing the similar issue two years later, might have been reintroduced in later version, who knows. Any help would be greatly appriciated.
Thank you for taking the time, you guys are the best!
I use 'almost' stock-standard forge configs
The text was updated successfully, but these errors were encountered: