Xcode Project broken after renaming and rebuilding (App cleaned, and ran at the same time, and schemes broke)

£可爱£侵袭症+ 提交于 2019-12-06 06:37:58

问题


I was renaming my app from "App's Name?" to "Apps Name", removing the question mark and apostrophe, to prevent the error "A signed resource has already been added, modified, or deleted". However, at one point, the project seemed to clean itself and try building/running at the same time, which caused the build to fail. So I closed and reopened Xcode, and the project is now broken. I can't save it, or build or clean it (all these options are greyed out in the menu). It shows a wheel next to my project and says my device is ineligible, whilst not allowing me to switch to any simulators.

I addition, when I try changing the app name in the File Inspector, and hit enter, the following popup appears:

http://i.imgur.com/vfLMzlG.png

Does anyone know how to fix this?

EDIT: So I think I've found out it's to do with the Schemes messing up. Here's a screenshot of my Schemes:

http://i.imgur.com/4uOMg9d.png

So, is there any way to remove the other 2 schemes, leaving just the one in the middle? This may fix my issue.

EDIT 2: So I've solved the issue by going into "Edit Schemes", and changing the executable in the "Run" section to be the same as the scheme I wanted to use, rather than being "Ask on launch". Hope this helps someone in the future!


回答1:


So I've solved the issue by going into "Edit Schemes", and changing the executable in the "Run" section to be the same as the scheme I wanted to use, rather than being "Ask on launch". Hope this helps someone in the future!



来源:https://stackoverflow.com/questions/26191787/xcode-project-broken-after-renaming-and-rebuilding-app-cleaned-and-ran-at-the

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