Xcode "The selected destination does not support the architecture " 错误
2013-01-19 21:04
483 查看
升级了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.com/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了。。
"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.com/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了。。
相关文章推荐
- Xcode "The selected destination does not support the architecture " 错误
- 解决Xcode "The selected destination does not support the architecture " 错误错误
- Xcode "The selected destination does not support the architecture " 错误
- 解决Xcode "The selected destination does not support the architecture " 错误错误
- xcode "nib but the view outlet was not set."错误
- 解决方案:"Client does not support authentication protocol requested by server”错误
- 如何解决sql server2005的“不允许远程连接”错误.(how to resolve the error: "SQL Server does not allow remote connections" for SQL Server2005)
- 安装cocoaPods出现错误error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not
- 关于C#中的错误:The type 'X' does not exists in the "Y"
- xcode "nib but the view outlet was not set."错误
- Access数据库出现"Selected collating sequence not supported by the operating system."错误
- 【xcode】错误之Could not launch "" failed to get the task for process
- python socket send 错误:TypeError: 'str' does not support the buffer interface
- NDK的错误ERROR: The device does not support the application's targetted CPU ABIs!解决方法
- Fix the error of ""Server does not support secure connections. " ?" when sending email
- winform "Value does not fall within the expected range"错误
- Access错误提示之"Selected collating sequence not supported by the operating system."
- 解决Xcode中运行出现"cannot run using the selected device"、"cannot run on the selected destination"或无反应问题
- 41.【xcode】错误之Could not launch "" failed to get the task for process
- xcode "nib but the view outlet was not set."错误