-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Signature - The nested app bundle Electron Framework #436
Comments
Please use https://itunes.apple.com/us/app/rb-app-checker-lite/id519421117?mt=12 to check your app. Please set |
Maybe related electron/packager#371 |
If you use latest electron, you need to wait electron/packager#371 fix. |
@develar I'm not sure but |
@sethlu No, we use your excellent module (but fork — my PR was accepted, thanks). |
@develar Sorry I looked at the wrong part of the code... |
@develar Just read this: https://discussions.agilebits.com/discussion/37099/verification-of-app-signature. Not sure if it's related to this issue. His |
@jechazelle May I ask which identifier you used on iTC? Was it |
Hi @sethlu On iTunes Connect I use : com.myapp |
@jechazelle thanks for confirming. Sorry but I'm out of clues right now. Would you do the following test of designated requirements on your local machine? codesign --verify --verbose path/to/my.app |
@sethlu Yes, of course !
|
@jechazelle Thanks for testing... Now this is very weird 😿 |
I re-signed my .app from mas folder with this script : child.plist
parent.plist
sign.sh
Now it's done, I see my build on iTunes Connect ! I wait if Apple valid my app with this pkg... |
|
If you use electron-builder for the MAS build you should set env vars https://github.com/electron-userland/electron-builder/wiki/Code-Signing |
@sethlu codesign checks cert — no way to use invalid not installer cert (so, I doubt that it is a electron-builder bug). But there is some user error and my goal to add extra check when this issue will be solved. FYI: codesign verify on electron-osx-sign side is not complete — #377 is not prevented. |
I am fairly sure that if Application Loader takes your pkg then its correctly signed |
@develar I'll try to reproduce this error... see if
|
I checked my env vars :
I have no CSC_LINK, CSC_KEY_PASSWORD, CSC_INSTALLER_LINK, CSC_INSTALLER_KEY_PASSWORD I must use it "3rd Party Mac Developer Application: Jeremie Chazelle (XXXXXXXX)" somewhere ? |
@develar @sethlu
when I build with target: mas, the app does not respond on launch, and does not display any windows (myapp.app => 140,8Mo). May be it's a link with the certificate problem ? I used
|
@jechazelle let me respond to the comment regarding CSC first. I believe 3rd Party Mac Developer Application/Installer should be used to sign off any app bundles/installers sent to iTC for review. |
@jechazelle As a quick solution, would you do the following with your app bundle either signed/unsigned? Previous signings should be overwritten by default. 💭 npm install -g electron-osx-sign
# OR sudo npm install -g electron-osx-sign IF EACCES error thrown
# Display logs while signing or packing flat installer
export DEBUG=electron-osx-sign*
# This should automatically discover certs for signing
electron-osx-sign path/to/my/app.app --entitlements path/to/my/entitlements.plist
# And this for flatting
electron-osx-flat path/to/my/app.app (also note that I think we may track down this issue slightly better if with the script above works (as I expect). Then we may take some time looking into the signing part of using |
@jechazelle That sounds like it might be a sandbox issue, electron have just released 1.1.2 that addresses a problem with sandboxing, check out the latest instructions about entitlements, https://github.com/electron/electron/blob/master/docs/tutorial/mac-app-store-submission-guide.md |
@mcfedr I think what @jechazelle did earlier (#436 (comment)) adheres to the latest MAS submission guide, (not sure about his |
@sethlu "I believe 3rd Party Mac Developer Application/Installer should be used to sign off any app bundles/installers sent to iTC for review. If Developer ID Application was used for signing, it may not work; probably it explains why previously Application Loader throws the error message." So, I must modify my env var ?
by
from wiki : my info.plist
|
@jechazelle I think @develar may know more on the set up of this module. |
I have never yet published to MAS, so, I trust @sethlu And as I see in the code https://github.com/electron-userland/electron-osx-sign/blob/master/index.js#L298 yes, So, such check must be added to |
@jechazelle Thanks for posting your |
So, it's strange, when I build my project with mas, I click on myapp.app, launch application, and I don't use the http request (get) in my application (angularjs) : error name not resolve When I build without mas, the file .app generate allow to use http request (get) |
@sethlu After many tests with electorn-builder, I try to use electron-osx-sign to found why my sign doesn't work with electorn-builder ./dist/osx/My App.app
But when I upload my pkg with Application Loader, I have this : So I try this: ./default_mas_entitlements
./default_mas_inherit_entitlements
But I have this error :
I wonder if there is not a link with my problem with electron -builder |
@jechazelle If wish to add options, you may use the following for signing and packing. Note the two dashes electron-osx-sign "./dist/osx/Releases Pro.app" --identity="3rd Party Mac Developer Application: Jeremie Chazelle (XXXXXXXXXX)" --entitlements="./default_mas_entitlements" --entitlements-inherit="./default_mas_inherit_entitlements"
electron-osx-flat "./dist/osx/Releases Pro.app" --identity="3rd Party Mac Developer Installer: Jeremie Chazelle (XXXXXXXXXX)" Additionally, |
Also, very strangely |
Thank you @sethlu my app is sign ! But, when I sign my app with this command
I can't use my xhr request in myapp.app, do you have an idea why ? How can I remove Squirrel.framework ? |
@jechazelle theoretically you cannot send XHR requests lol. <?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.network.client</key>
<true/>
</dict>
</plist> Additionally, when submitting the app eventually, you may need to provide clarification at iTC on why On the A possible internal struct of a mas build should look something like:
|
@sethlu thank you ! :) I added
And I have a new message from Apple after the submission with Application Loader:
My App doesn't use QuickTime lol !! |
@jechazelle No worries. I guess that's the conflict with non-MAS build. Check electron/electron#5749; I think our issue from message received could be resolved with a proper packing with MAS build. |
@sethlu I tried to add --platform="mas"
But I have the same error |
@jechazelle well, the presence of It's the Electron build, like |
@sethlu I use
Because my app freeze if I upgrade electron-prebuilt :) .. |
@sethlu How can I add
with electron-builder when I build the mas version ? |
@jechazelle From the doc here https://github.com/electron-userland/electron-builder/wiki/Options#buildmas I think you may add the following in your "mas": {
"identity": "3rd Party Mac Developer Installer: Jeremie Chazelle (XXXXXXXXX)",
"entitlements": "path-to-my-entitlements"
} |
Fix:
4.x will be released soon (yes, it is a breaking change). |
@jechazelle with this issue having been closed, if you need extra help with code-signing any Electron products, you may either open an issue here https://github.com/electron-userland/electron-osx-sign/issues (I've just added a knowledge base label in case any general questions fall there) or shoot me an email. |
@sethlu Thanks a lot for you help!! :) I will try with the new version, To resume, I have :
./default_mas_entitlements
./default_mas_inherit_entitlements
package.json :
|
with the new version, I must declare :
package.json
It's correct ? |
@jechazelle Please wait several hours — 4.2 should be out soon (well, I am trying to release second day :( |
BTW — please consider to not specify
|
And yes, in the new 4 version you don't need to specify identity in the mas — appropriate identity will be found automatically. |
@develar Awesome Release !! |
@develar electron-builder 4.2.0 will run with electron-prebuilt 1.0.2, because with 0.36.12 it's run, but my app freeze if I upgrade electron-prebuilt ? |
@develar Would you mind having a check on how the default entitlements here are implemented? I've renamed the entitlements file so they match the Apple docs better. I could update the links in wiki but anything that needs updating within this module may have to be updated as well. |
@sethlu Yep, thanks, we must change according to your conventions. https://github.com/electron-userland/electron-builder/blob/master/src/osxPackager.ts#L147 It is not error currently, because we set options only and only if there is explicit user setting, i.e. we don't repeat default file names. But we should follow your convention. I will do it — since in any case 4 is a major release. |
@develar Thanks for following. I did this because editing the |
@develar Have you updated any docs with entitlements from |
@sethlu Docs and implementation are fixed, thanks. |
Hi,
I try to sign my app with electron builder, with my package.json :
I done this tutoriel
https://github.com/nwjs/nw.js/wiki/MAS%3A-Requesting-certificates
to make the certificates
I launch the build and sign with
sudo npm run-script dist
With Application Loader, I upload my app. The upload it's done
But, after 30 secondes, I have an email from Apple
I don't understand what I'm missing...
The text was updated successfully, but these errors were encountered: