可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
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
- Click on No Scheme
- Click on Manage Scheme
- 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.