Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: No Scheme

Tags:

xcode

I recently opened project in Xcode is now saying I have No Scheme: enter image description here

When I try and Manage Schemes I am unable to Autocreate Schemes Now (a separate post but possibly related) and no Schemes are listed: enter image description here

and when I try and add a Scheme I get dialog saying Target None. enter image description here

What's going on and how do I fix my Xcode project?

like image 504
Snowcrash Avatar asked Feb 13 '14 13:02

Snowcrash


People also ask

How do I delete a scheme in Xcode?

Use the Finder, not Xcode. With Xcode closed, locate that project folder in the Finder, move it to the trash, then empty the trash.

What is shared scheme Xcode?

Xcode schemes are saved locally so that Xcode has access to them, but by default they are not shared with others and they are not included in source control. To share a scheme, click on "Manage schemes" in Xcode and make sure that the scheme used for building your xcproject/xcworkspace is marked as shared.

What does clean build folder do?

If you select "Clean Build Folder", Xcode will delete the entire Build Folder, so nothing left.

What is Target membership Xcode?

Making an implementation file a member of a target tells Xcode to compile the file when you build the target. In your example Xcode compiles the file myAppFile. m when you build the myAppTests target but not when you build the myApp target.


2 Answers

Close Xcode and delete the folder <username>.xcuserdatad from within <projectname>.xcodeproj/xcuserdata/. Then restart Xcode, the schemes should re-appear.

EDIT: You may need to delete from .xcodeproj file and .xcworkspace file

like image 175
Chris Miles Avatar answered Oct 06 '22 14:10

Chris Miles


This worked for me

  1. Click on No Scheme
  2. Click on Manage Scheme
  3. Click on Autocreate Schemes Now
like image 27
gabo Avatar answered Oct 06 '22 13:10

gabo