Skip to content
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

Error: mas target — Identity name is specified, but no valid identity with this name in the keychain #479

Closed
jechazelle opened this issue Jun 8, 2016 · 9 comments · May be fixed by qcif/data-curator#563
Labels

Comments

@jechazelle
Copy link

jechazelle commented Jun 8, 2016

Hi,

I try to use electron builder to MAS deploiement
"electron-builder": "4.2.6",
"electron-prebuilt": "1.2.2",

"build": {
    "productName": "My App",
    "app-bundle-id": "com.myapp",
    "app-category-type": "public.app-category.productivity",
    "osx": {
      "title": "MyApp",
      "target": "mas",
      "identity": "Jeremie Chazelle"
    },
    "mas": {
      "entitlements": "./default_mas_entitlements",
      "entitlementsInherit": "./default_mas_inherit_entitlements"
    }
  }

But I have an error :

Error: Identity name "Jeremie Chazelle" is specified, but no valid identity with this name in the keychain
    at Function.<anonymous> (/Users/jeremiechazelle/Sites/my-app/node_modules/electron-builder/src/osxPackager.ts:79:15)

I checked my certificat, my private key is "Jeremie Chazelle"

@develar
Copy link
Member

develar commented Jun 8, 2016

Please execute security find-identity -v -p codesigning — attach out.

@develar
Copy link
Member

develar commented Jun 8, 2016

And if no other identities in your keychain, don't specify identity.

@develar
Copy link
Member

develar commented Jun 8, 2016

And valid Apple cert should be in your keychain — import https://developer.apple.com/certificationauthority/AppleWWDRCA.cer

@jechazelle
Copy link
Author

jechazelle commented Jun 8, 2016

I have 3 identities :

security find-identity -v -p codesigning

  1. LKDJ89897SDJKLQS90DOAZ908DQODIAZ908QSP "3rd Party Mac Developer Application: Jeremie Chazelle (BXXXXXXXXX)"
  2. LF908SFZ9PDS098QD908EI9ZE09E809ZEF89EFI9I "Developer ID Application: Jeremie Chazelle (BXXXXXXXXX)"
  3. LK0ZE09FEKZEKSKJZE8DFZNKJ98798ZFSDUUISD "Mac Developer: Jeremie Chazelle (KLXXXXXXXXX)"
    3 valid identities found

@develar
Copy link
Member

develar commented Jun 9, 2016

One identity and 3 certificates ;) please try to not specify identify.

@jechazelle
Copy link
Author

Without identity, electron-builder wants CSC_NAME and CSC_LINK

@develar
Copy link
Member

develar commented Jun 9, 2016

On CI server or development machine?

@jechazelle
Copy link
Author

development machine

@develar
Copy link
Member

develar commented Jun 9, 2016

Hmmm, works for me. Please set DEBUG=electron-builder env and provide console out.

@develar develar changed the title Error: Identity name is specified, but no valid identity with this name in the keychain Error: mas target — Identity name is specified, but no valid identity with this name in the keychain Jun 9, 2016
@develar develar added the bug label Jun 9, 2016
@develar develar closed this as completed in b091a13 Jun 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants