Xcode 7.1 : Simulator can't be opened because the identity of developer cannot be confirmed
Asked Answered
B

5

6

I've upgraded my Mac OS X to 10.11.1 El Capitan. When I try to run app on Xcode 7.1 I'm getting an pop message stating "Simulator" can't be opened because the identity of the developer cannot be confirmed. Refer screenshot.

Why this message? I'm not able to test any app on Xcode 7.1.

Screenshot for error

Bracy answered 29/10, 2015 at 11:37 Comment(1)
Xcode Menu => Xcode => Open Developer Tool => iOS Simulator Is that working?Gleeman
E
11

Apple believes is security that's the reason only apps which you have downloaded from App Store can be opened.

Well, to open any app which you have downloaded and install from anywhere you need to allow permission. To do so:

  1. Open 'System Preferences'
  2. Go to 'Security & Privacy' and tap on 'General' tab
  3. Click on 'Lock' icon which you can find on bottom left screen and type your administrator password.
  4. The last step is to choose 'Anywhere' under 'Allow apps downloaded from:' and then again click on 'Lock' icon.
  5. That's it. Now you can run any apps.

enter image description here

Enjoy!

Encapsulate answered 3/12, 2015 at 10:37 Comment(1)
Great way for getting viruses in the future. You should probably try to fix your specific problem, instead of making general changes to your computer's configuration.Phelloderm
W
12

Gatekeeper requires that every application downloaded from the internet is verified. Since you downloaded "Simulator" with Safari it has to be checked and added to a list of accepted applications. Here is a quick way to do that:

  1. Run Terminal.app
  2. Enter the following command sudo xattr -d com.apple.quarantine /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app

I found the answer here.

Warta answered 19/5, 2016 at 16:4 Comment(1)
better than accepted answer since there is no "anywhere" option in mojaveSemipermeable
E
11

Apple believes is security that's the reason only apps which you have downloaded from App Store can be opened.

Well, to open any app which you have downloaded and install from anywhere you need to allow permission. To do so:

  1. Open 'System Preferences'
  2. Go to 'Security & Privacy' and tap on 'General' tab
  3. Click on 'Lock' icon which you can find on bottom left screen and type your administrator password.
  4. The last step is to choose 'Anywhere' under 'Allow apps downloaded from:' and then again click on 'Lock' icon.
  5. That's it. Now you can run any apps.

enter image description here

Enjoy!

Encapsulate answered 3/12, 2015 at 10:37 Comment(1)
Great way for getting viruses in the future. You should probably try to fix your specific problem, instead of making general changes to your computer's configuration.Phelloderm
E
4

Simulator.app is distributed by Apple and should be codesigned appropriately.

The dialog you are seeing indicates that the version you have did not pass Gatekeeper's codesignature checks.

Possible causes:

  1. You made local modifications to Xcode.app or Simulator.app to invalidate Apple's code signature.
  2. Disk corruption or maybe an error in transport caused some resources in Simulator.app to not be valid such that the signature is no longer valid.
  3. You downloaded an unofficial copy of Xcode.app (or just Simulator.app) which has been modified by a 3rd party. Google "XcodeGhost" for information on why that's a bad idea.
  4. The Simulator.app you are trying to open is not actually Xcode's.
  5. A bug in Gatekeeper or OS X might be triggering a false result.

Please also update your question with the output of the following steps (assuming you've setup xcode-select appropriately) for additional support:

codesign -vvv -d $(xcode-select -p)/Applications/Simulator.app
codesign -vvv $(xcode-select -p)/Applications/Simulator.app
Eyepiece answered 29/10, 2015 at 15:42 Comment(2)
I've changed name of Xcode to Xcode7 since I want earlier version of Xcode6.4 too.Bracy
That renaming of the bundle itself doesn't matter. You need to not mess with the contents of the bundle.Eyepiece
A
4

This happened to me when I ran a build script that launched the simulator directly, before actually opening Xcode.

When you open Xcode for the first time it will go through a verification process that takes a long time. After that completes, the contents of the bundle will be verified as well and you can use the simulator without the warning.

If you still have the warning after verification your version of Xcode might be compromised.

It is possibly a bug that gatekeeper doesn't warn you that the parent bundle has not been verified.

Alathia answered 24/3, 2016 at 0:11 Comment(0)
E
0

In my case I had multiple instances of Simulator.app present (some downloaded directly from Apple's site, rather than installed from the store). When I issued open -b com.apple.iphonesimulator one of the downloaded simulators got opened, instead of the current one in /Applications/Xcode.app. I changed my command to open -a /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app and the issue is now resolved.

Eumenides answered 10/11, 2015 at 17:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.