Live data from Hacker News

Validating Your Version of Xcode

developer.apple.com

31–40 of 101 posts

Re: Validating Your Version of Xcode

#32
post #26
post #8

Am I understanding this correctly: the devs who downloaded Xcode from an unknown source disabled gatekeeper to get it to run? That's unbelievably stupid dev behavior, if true.

disabled gatekeeper to get it to run Not necessarily - they might have disabled GateKeeper a long time ago and never re-enabled it. I have the same complain with Android's "allow software from third parties" checkbox - it's a little useless because you uncheck it for one specific app you downloaded, but probably leave it unchecked forever more.

If you run an app that gatekeeper forbids, when you go into settings to fix that there is a button to approve that single app. There's no need to let everything through.

Re: Validating Your Version of Xcode

#33
post #28

What output is expected when you run the command? I get: $ spctl --assess --verbose /Applications/Xcode.app /Applications/Xcode.app: rejected source=obsolete resource envelope I downloaded XCode via the app store, but have disabled gatekeeper (re-enabled it before running this command).

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

  /Applications/Xcode.app: accepted
  source=Apple

  /Applications/Xcode.app: accepted
  source=Apple System
Are the only valid options. You should remove XCode and reinstall it from Apple.

Re: Validating Your Version of Xcode

#34
post #28

What output is expected when you run the command? I get: $ spctl --assess --verbose /Applications/Xcode.app /Applications/Xcode.app: rejected source=obsolete resource envelope I downloaded XCode via the app store, but have disabled gatekeeper (re-enabled it before running this command).

I get this with latest XCode from the App Store:

    $ spctl --assess --verbose /Applications/Xcode.app
    /Applications/Xcode.app: accepted
    source=Mac App Store

Re: Validating Your Version of Xcode

#35
post #8

Am I understanding this correctly: the devs who downloaded Xcode from an unknown source disabled gatekeeper to get it to run? That's unbelievably stupid dev behavior, if true.

They downloaded Xcode from somewhere besides Apple. How much more clue do you need about their stupidity.

Gatekeeper makes that a lot safer than you might think. The only downside is that it's not obvious how to check who signed it. If you could easily verify it's signed by Apple, that would be 100% safe.

Re: Validating Your Version of Xcode

#36
post #24
post #8

Am I understanding this correctly: the devs who downloaded Xcode from an unknown source disabled gatekeeper to get it to run? That's unbelievably stupid dev behavior, if true.

I see a lot of people saying they disable Gatekeeper on purpose. Is the "right-click and open" trick that disables Gatekeeper for that app generally unknown? Or do people value not being assed to do it more than (potential) security upsides?

I wasn't aware of this shortcut until now. I've been going the long route through Settings. Thanks for the tip!

Re: Validating Your Version of Xcode

#37
post #28

What output is expected when you run the command? I get: $ spctl --assess --verbose /Applications/Xcode.app /Applications/Xcode.app: rejected source=obsolete resource envelope I downloaded XCode via the app store, but have disabled gatekeeper (re-enabled it before running this command).

I got:

    /Applications/Xcode.app: accepted
    source=Mac App Store
    override=security disabled
Which I think means I have Gatekeeper disabled, but it still gave me the 'accepted' response.

Re: Validating Your Version of Xcode

#38
post #21

Earlier quoted context omitted.

On machines with Gatekeeper enabled you won't be able to open the application without it verifying the signature. Devs would have to on purpose remove that protection to run this bad version of Xcode, and after that it is practically game over.

How about an "install" script, written in your scripting language of choice? Sufficiently obscure language, obfuscate the code, leave misleading comments and copyright statements to look like its from Apple...

It might work, but an "experienced" developer might know that there no install script for Xcode (also, an experienced developer will probably not download from a random server, so i guess that's something...)

Re: Validating Your Version of Xcode

#39
post #30

Some news sources said Angry Birds 2 was trojanized, but "only" for the Chinese version. Anyone have any more info on that? Because I didn't think you could have separate binaries per location? Unless it is actually two entirely separate apps? And why would they even have a separate binary for the Chinese market (and why would they use a different build environment?)

It appears that a Chinese company named Kunlun licensed IP from Rovio and is developing Angry Birds apps specifically for the Chinese market. Perhaps they're also distributing the app themselves.

http://www.rovio.com/en/news/press-releases/621/rovio-gets-w...

Re: Validating Your Version of Xcode

#40
post #37
post #28

What output is expected when you run the command? I get: $ spctl --assess --verbose /Applications/Xcode.app /Applications/Xcode.app: rejected source=obsolete resource envelope I downloaded XCode via the app store, but have disabled gatekeeper (re-enabled it before running this command).

I got: /Applications/Xcode.app: accepted source=Mac App Store override=security disabled Which I think means I have Gatekeeper disabled, but it still gave me the 'accepted' response.

I also have this. I'm curious if I have a hacked version.
Post reply on HN