Xcode: No Scheme

前端 未结 19 2094
闹比i
闹比i 2020-12-02 07:28

I recently opened project in Xcode is now saying I have No Scheme: \"enter

<
相关标签:
19条回答
  • 2020-12-02 08:08

    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

    0 讨论(0)
  • 2020-12-02 08:08

    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

    0 讨论(0)
  • 2020-12-02 08:10

    In my case the cause was renaming the project so I went to Manage Schemas and created the App Schema again (+ button).

    0 讨论(0)
  • 2020-12-02 08:13

    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.

    0 讨论(0)
  • 2020-12-02 08:16

    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.

    0 讨论(0)
  • 2020-12-02 08:18

    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.

    0 讨论(0)
提交回复
热议问题