admin管理员组文章数量:1635843
升级了XCODE后,发现旧工程编译后无法运行,出现:
"The selected destination does not support the architecture for which the selected software is built. Switch to a destination that supports that architecture in order to run the selected software." 错误。
在网上搜索半天找不到好的解决方式,即便是stackoverflow上。折腾了半天,最后换了关键词搜索,总算找到一个还算靠谱的解决方案,记下来希望能帮看到的哥们节省点时间。
文章地址在:http://hiediutley/2011/03/10/xcode4-is-your-old-project-hanging-in-the-simulator/
If you are having the same problem — deleting all the Xcode4 project data with your userid may get you up and running again…
- How to go about deleting the user-specific project data
- In terminal – navigate to your project directory
- cd into the ${PROJECT_NAME}.xcodeproj directory
- run this command: find . -name ‘*yourUserName*’
- rm -rf any files or dirs that come up
- Reopen Xcode4 – build and *hopefully* run your project
简单译一译:
如果你有同样的问题,那么删除项目中所有的跟你的userid有关的文件也许能让你启动它。
怎样删除用户指定的项目文件呢?
1、在命令行中cd到你的工程文件夹下
2、cd进xcode 项目的文件夹,大致格式是:${PROJECT_NAME}.xcodeproj (注: 每一个xcode 项目其实是一个文件夹。。你如果右键点击项目文件会发现一个属性叫:show package content,其实就是浏览它的内容。。)
3、执行这个命令:find . -name ‘*yourUserName*’ (注:把yourUserName替换成你的用户名就行啦)
4、删除列出的文件。比如,我执行完find后出现如下文件:
./project.xcworkspace/xcuserdata/kevin.xcuserdatad
./xcuserdata/kevin.xcuserdatad
于是我用rm -rf ./project.xcworkspace/xcuserdata/kevin.xcuserdatad 一个个把它们干掉。
4、把xcode关掉(command+q彻底退出啊。。记得),然后重开。*希望*能运行吧。不行就只能再google了。。
本文标签: 错误selectedquotxcodeArchitecture
版权声明:本文标题:Xcode "The selected destination does not support the architecture " 错误 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dianzi/1729217535a1190596.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论