If there are any .o files generated from native modules in node_modules during packaging, they will be present in the .app. This will cause Application Loader to reject the package with this error:
ERROR ITMS-90135: "The executable could not be re-signed for submission to the App Store. The app may have been built or signed with non-compliant or pre-release tools."
The easy fix is to clear out the .o files from node_modules before packaging. Not sure if this should be fixed in electron-osx-sign or electron-packager, but the issue doesn't manifest until .pkg and Application Loader get involved.
My suggestion is to add .+\.o$ to your electron-packager ignores.
I didn't know there was an ignore option for electron-packager. That should do it, thanks!
Most helpful comment
My suggestion is to add
.+\.o$to your electron-packager ignores.