Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No devices because the active scheme has no targets

Tags:

xcode

ios

I have recently changed the name of my project in Xcode, and there seems to be an issue. When I try to select a device/simulator, I get the error: No devices because the active scheme has no targets. An image of the error is below.

IMAGE

Does anyone know the solution to this error?

like image 282
Rayaan Siddiqui Avatar asked Oct 06 '19 17:10

Rayaan Siddiqui


1 Answers

If somehow you want to proceed and save your new project name, make sure:

  1. Make sure the project files can be read from xCode [Check for any possible path changes regarding with the new name]
  2. [If not] Set the info.plist to your current target's Build Settings
  3. [If target name has changed and you had already installed pods] Edit the Podfile target and set it to your new target name. Run "pod deintegrate" and pod install then.
  4. Clear Derived Data
  5. Open your project.xcworkspace, Edit Scheme -> Run -> Executable -> Set your target
  6. Build or Run
like image 190
ndriqim.haxhaj Avatar answered Sep 17 '22 05:09

ndriqim.haxhaj