Xcode: No Scheme

匿名 (未验证) 提交于 2019-12-03 01:12:01

问题:

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?

回答1:

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



回答2:

This worked for me

  1. Click on No Scheme
  2. Click on Manage Scheme
  3. Click on Autocreate Schemes Now


回答3:

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.



回答4:

Use shortcut ctrl+cmd+[ or restart.



回答5:

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.



回答6:

If you are using pods and using the correct workspace what I found to work best is simply open up terminal run pod update restart Xcode and every time it fixed the problem for me.



回答7:

None of the above worked for me. My solution was to look at the project file differences in text mode and I found that VALID_ARCHS got reset in two places (VALID_ARCHS = ""). Restoring the proper settings for VALID_ARCHS, also restored back the Schemes.



文章来源: Xcode: No Scheme
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!