Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After installing Xcode 7 I can't build and run projects anymore as document fails to open

Tags:

xcode

ios

xcode7

EDIT: This question refers to teh pre-release version of Xcode 7, hence it may not be relevant if you are running the currently released version as some issues may have been fixed.


I get the following:

Failed to connect with the iOS agent. Please file a bug report at bugreport.apple.com.

enter image description here

Why is that?

If I look at the details I get:

=================================

ERROR:

Failed to find or create execution context for description System content 1x for IBCocoaTouchFramework-EightAndLater w/ default fidelity (Failure reason: Software caused connection abort): Failed to find newest available Simulator runtime (Failure reason: Software caused connection abort): Simulator verification failed. (Failure reason: A connection to the simulator verification service could not be established.)

Error Domain=NSPOSIXErrorDomain Code=53 "Failed to find or create execution context for description System content 1x for IBCocoaTouchFramework-EightAndLater w/ default fidelity" UserInfo=0x7fcf5961ebd0 {NSLocalizedDescription=Failed to find or create execution context for description System content 1x for IBCocoaTouchFramework-EightAndLater w/ default fidelity, NSUnderlyingError=0x7fcf58b72950 "Failed to find newest available Simulator runtime"}

like image 711
mm24 Avatar asked Jun 30 '15 12:06

mm24


People also ask

How do I rebuild a project in Xcode?

If there is any issue in the project build, then first step is to clean the build, which will clean the build and make a new build from scratch next time when you run the code. To clean the build you can use the shortcut Command+Shift+K or Menu Bar → Product → Clean .

How do I build and run in Xcode?

To build and run your code, choose Product > Run, or click the Run button in your project's toolbar. Xcode analyzes your scheme's targets and builds them in the proper sequence. After a successful build, Xcode launches the associated app.

How do I open Xcode project on Mac?

Open a projectClick Open on the Welcome screen or File | Open from the main menu. Navigate to the desired . xcodeproj directory. Specify whether you want to open the project in a new window, or close the current project and reuse the existing window.


1 Answers

I ran into the same issue with xcode 7 beta 3.

I had my deployment target set to 8.3. Setting it to 9.0, cleaning the build, and restarting xcode worked for me.

like image 124
ryguy Avatar answered Sep 23 '22 02:09

ryguy