A build only device cannot be used to run this target [duplicate] - ios

This question already has answers here:
A build only device cannot be used to run this target
(22 answers)
Closed 2 months ago.
No supported iOS devices are available. Connect a device to run your application or choose a simulated device as the destination.
I have tried to run but not succeeded.

Select a simulator to run the application. You can do this here:

Related

iOS 10.0.1 and Xcode Error: "Could not find developer disk image" [duplicate]

This question already has answers here:
"Could not find Developer Disk Image"
(9 answers)
Closed 6 years ago.
I updated to iOS 10.0.1 and cannot deploy my project to the device anymore. It was working right before the update. I believe my Xcode is updated (7.3.1).
Rebooting device and computer does not fix the issue.
Also interesting, in Xcode Settings -> iOS Deployment target -> iOS 9.3 is the higher version available!
Does anybody have a solution?
Your Xcode(7.3.1) is not updated. update your Xcode here.

Simulator is not running but still shows in use [duplicate]

This question already has answers here:
The Simulator can't be launched because it is already in use
(14 answers)
Closed 8 years ago.
In my xcode simulator no app is running,but when I try to run any app,this shows up-
"The simulator can't be launched because it is already in use"
I wanted to add a snapshot but i don't have 10 reputation
What can i do now?
Close simulator and relaunch xCode - will help
Close the simulator and quit the xCode and relaunch it you then run your application again. It will help you. Some times the latest version of xCode having this kind of problem.

Xcode 6 Toolchain Build Error [duplicate]

This question already has answers here:
Xcode 6 Beta Toolchain Error
(3 answers)
Closed 8 years ago.
I'm trying to make a Today Extension, so I opened up a new Xcode 6 project, and created a Today Extension. I then Built and Ran the project but it failed with this error:
Command /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 1
I literally didn't change anything, and I've only use Xcode for playground before now. How do I fix this??
This error message is very misleading. It happened to me when I am trying to run without proper certificate on a physical device. First check if you are getting the same error when trying to run on a simulator, if yes you need to dig deep, if not check your certificates.

How to compile and run IOS app without using from command line tool without using code? [duplicate]

This question already has an answer here:
Build/run iOS Xcode project from Terminal
(1 answer)
Closed 8 years ago.
How to compile and run IOS app from command line tool without using code?
Note: Without using xcode
Check xcodebuild.
There are a lot of options though.
EDIT : You will indeed need to have Xcode installed anyway.

How to run XCTest without running the app? [duplicate]

This question already has answers here:
XCode 5 unit testing: starts my app
(7 answers)
Closed 9 years ago.
When I try to run test cases in XCTest, I noticed that XCode will always active the app first.
Since my app runs a lot of stuff during initialization (ex: checking new versions), I don't want it to run when I am debugging the test case.
Is there a way to run XCTest without activating the app?
In the Xcode Menu Test under Product.This will run the tests only.

Resources