Learn more about Russian war crimes in Ukraine.

How to add a developer account to XCode

I just switched to my new MacBook Pro (the one with the touch bar - a feature I’ll be adding to Vidrio). I cloned the Vidrio repository, and attempted to build it with XCode, but XCode complains:

Check dependencies

Add your developer account to Xcode: There are no accounts registered with Xcode. No signing certificate “Mac Development” found: No “Mac Development” signing certificate matching team ID “[omitted]” with a private key was found.

XCode needs to sign in with my Apple ID. You can see listed accounts under XCode > Preferences > Accounts.

After signing in, I have the choice of two “teams” in the code-signing config for Vidrio. These teams are “James Fisher” and “James Fisher (Personal team)”. What are these things, what are “teams” anyway, and what’s the relationship to my Apple ID?

Team = “development team”, and these are identified by their own ID. The development team is identified in my Vidrio.xcodeproj/project.pbxproj. I was building with the “James Fisher” team, and not the “personal team”.

When selecting the team, XCode said it generated a new signing certificate. This new certificate is listed in my macOS certificates in my Developer Program account. I then received an email telling me that

Your Certificate Has Been Revoked

Any provisioning profiles that include this certificate are no longer valid and must be regenerated for future use.

I assume this refers to the signing certificate on my old MacBook Pro. However, these certificates are still listed in the web dashboard, and don’t say that they’re revoked.

This whole code-signing process is mysterious.

What can computers do? What are the limits of mathematics? And just how busy can a busy beaver be? This year, I’m writing Busy Beavers, a unique interactive book on computability theory. You and I will take a practical and modern approach to answering these questions — or at least learning why some questions are unanswerable!

It’s only $19, and you can get 50% off if you find the discount code ... Not quite. Hackers use the console!

After months of secret toil, I and Andrew Carr released Everyday Data Science, a unique interactive online course! You’ll make the perfect glass of lemonade using Thompson sampling. You’ll lose weight with differential equations. And you might just qualify for the Olympics with a bit of statistics!

It’s $29, but you can get 50% off if you find the discount code ... Not quite. Hackers use the console!

More by Jim

Tagged . All content copyright James Fisher 2017. This post is not associated with my employer. Found an error? Edit this page.