Mobile menu toggle

How to tell if you’re using a counterfeit version of Xcode

By

Double-check that you're using the right version of Xcode to build apps.
Double-check that you're using the right version of Xcode to build apps.
Photo: Johan Larrson/Flickr

Developers who have downloaded Xcode from an non-Apple source now have a way to tell if the version their using is an official Apple version, or if it might be infected by XcodeGhost, which wreaked havoc on the App Store on Sunday.

Apple has outlined how to verify if you’re using a counterfeit version of Xcode in a new support document. Developers should always download Xcode directly from the Mac App Store or Developer Website, but if you haven’t, follow these steps to make sure your copy is legit:

1) Open Terminal
2) Run the following command: spctl –assess –verbose /Applications/Xcode.app
3) Wait a few minutes.

Terminal will return the following for Xcode downloaded from the Mac App Store:

/Applications/Xcode.app: accepted
source=Mac App Store

If you downloaded Xcode from the Developer Site it will return one of the following:

/Applications/Xcode.app: accepted
source=Apple

or

/Applications/Xcode.app: accepted
source=Apple System

If Terminal’s results are anything other than ‘accepted’ from any source other than ‘Mac App Store’, ‘Apple System’ or ‘Apple’, you have a version that doesn’t have a valid signature. Delete it, and go download a clean version from the dev site.

Source: Apple

  • Subscribe to the Newsletter

    Our daily roundup of Apple news, reviews and how-tos. Plus the best Apple tweets, fun polls and inspiring Steve Jobs bons mots. Our readers say: "Love what you do" -- Christi Cardenas. "Absolutely love the content!" -- Harshita Arora. "Genuinely one of the highlights of my inbox" -- Lee Barnett.

3 responses to “How to tell if you’re using a counterfeit version of Xcode”

  1. shemnon says:

    Smart formatting strikes again. Step 2 should be –assess and –verbose, with two single dashes not a fancy en dash that your text editor “helpfully” substituted for you when you copied and pasted. Also, a monospaced font would help impress that these are typed commands and console output, which were also in the original and lost in pastation.

  2. Corey Robertson says:

    Hey Buster, you misspelled counterfeit in the title, but got it right in the body.

  3. lucascott says:

    it’s a lot easier than that. Did you download it from the Apple App Store. yes and you’re good. no and you probably have a jacked version

    its free and you don’t have to be a developer so why wouldn’t you go to the source

Leave a Reply