I recently opened project in Xcode is now saying I have No Scheme
:
When I try and Manage Schemes
I am unable to Autocreate Schemes Now
(a separate post but possibly related) and no Schemes are listed:
and when I try and add a Scheme I get dialog saying Target None
.
What's going on and how do I fix my Xcode project?
Use the Finder, not Xcode. With Xcode closed, locate that project folder in the Finder, move it to the trash, then empty the trash.
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.
If you select "Clean Build Folder", Xcode will delete the entire Build Folder, so nothing left.
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.
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
This worked for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With