Xcode: Can't create Developer ID Application button greyed out

Tags: xcode osx sign
By : Pier
Source: Stackoverflow.com
Question!

So I'm trying sign an Electron app and I need the Developer ID Application.

The problem is that in Xcode the button is greyed out:

enter image description here

Why is it greyed out?

Can I get the Developer ID Application by other means?

By : Pier


Answers

The problem was that I'm part of a team and only the AGENT account can create the Developer ID Application.

So I logged in with the Apple ID of the agent in Xcode and now the button was clickable.

The only resource I've found online that explains this is one from Mozilla: https://developer.mozilla.org/en-US/docs/Mozilla/Signing_Mozilla_apps_for_Mac_OS_X

If the "Developer ID" radio button is greyed out you probably have a group account. These types of accounts only allow for the "Agent" role to create Developer IDs.

Neither Apple's docs nor Xcode inform the user about this. Again Apple making things as difficult as possible for the developers.

By : Pier


You never explicitly initialize the contents of marked, or, more accurately, the contents of the array that it points to.

The loop in your constructor reads elements of marked to decide how to assign to color, but you never initialized the elements of marked being read.

Similiar argument for color and edgeTo.

This means that, while they may have had the expected initializations for the first case, may well be using whatever value happened to be there in later cases.



The descriptions are mandatory for any content you or any frameworks you link against attempt to access. The errors are generated upon an attempt to access the content if a usage description was not supplied, so if you're getting those errors your app must be requesting them. You should discover why your app or its frameworks require these and add appropriate usage descriptions to your app's info.plist.

Or more ideally, if you don't need access, see if there's a way to not request it (or use frameworks that do unnecessarily).



This video can help you solving your question :)
By: admin