I recently opened project in Xcode is now saying I have No Scheme
:
Firstly,when you are using Cocoapods to Develop iOS projects,you need to open the project with .xcodeworkspace
file instead of .xcodeproj
file.
Secondly you can Show Package Contents
with .xcworkspace
file,you will find the contents.xcworkspacedata
file.
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:BluetoothColorLamp24G.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
pay attention to this line:
location = "group:BluetoothColorLamp24G.xcodeproj"
The .xcworkspace
file has reference with the .xcodeproj
file.
If you find there is no file or wrong path about the location,you can link to your
.xcodeproj
file,which works for me.
Development Environment:
macOS 10.14
Xcode 10.1
In my case I rebranched to develop and then the window appeared if I want to resave my project. I must have clicked "close" though. Anyways, I lost my scheme and what helped was rebranching to some other branch, then back to develop and resave how I was supposed to do in the first place
In my case the cause was renaming the project so I went to Manage Schemas and created the App Schema again (+ button).
I think this is happening when you are opening the app.xcworkspace not app.xcodeproj.
Solution: Install the pod and open the app.xcworkspace again.
This commonly occurs when you install
a Cocoapod, and try building and running from your workspace
without first closing your project
. If this is the case, quit Xcode
, then open your app from your workspace and it should be fine.
The top answer fix didn't work for me when running the Xcode 8 beta's. but what did work was unplugging a connected device (iPhone, iPad etc.) and re plugging back in. The schemes would then reappear.