解决Xcode "The selected destination does not support the architecture " 错误错误
2013-06-25 16:39
831 查看
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." 错误。
首先,出现该问题一般是在
${PROJECT_NAME}.xcodeproj目录的相关文件的问题,像xcschemes/xcschememanagement.plist
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
解决方法步骤如下:
1、在命令行中cd到你的工程文件夹下
2、cd进xcode 项目的文件夹,大致格式是:${PROJECT_NAME}.xcodeproj (注: 每一个xcode 项目其实是一个文件夹。。你如果右键点击项目文件会发现一个属性叫:show package content,其实就是浏览它的内容。。)
3、进入yourname.xcuserdatad/xcschemes 后将xcschememanagement.plist 目录删除
4、把xcode关掉(command+q彻底退出啊。。记得),然后重开。*希望*能运行吧。不行就只能再google了。。
还有另一种可能原因是,出现有以下类似警告的错误提示,造成上述错误弹出窗口出现:
[WARN]Warning: Multiple build commands for output file /Developer/build/Release-iphonesimulator/
target引用了名字重复的资源
找到当前的target,展开之后,找到Copy Bundle Resources栏目,然后在里面找到重复名字的资源或本身没资源但此处确有文件的扩展名为.plist和png的文件一一移除,删除不要的那个即可
Command+Q退出重新打开工程项目即可
"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." 错误。
首先,出现该问题一般是在
${PROJECT_NAME}.xcodeproj目录的相关文件的问题,像xcschemes/xcschememanagement.plist
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
解决方法步骤如下:
1、在命令行中cd到你的工程文件夹下
2、cd进xcode 项目的文件夹,大致格式是:${PROJECT_NAME}.xcodeproj (注: 每一个xcode 项目其实是一个文件夹。。你如果右键点击项目文件会发现一个属性叫:show package content,其实就是浏览它的内容。。)
3、进入yourname.xcuserdatad/xcschemes 后将xcschememanagement.plist 目录删除
rm -rf ./project.xcworkspace/xcuserdata/"用户名".xcuserdatad rm -rf ./xcuserdata/"用户名".xcuserdatad
rm -rf ./project.xcworkspace/xcuserdata/xcschemes/xcschememanagement.plist
4、把xcode关掉(command+q彻底退出啊。。记得),然后重开。*希望*能运行吧。不行就只能再google了。。
还有另一种可能原因是,出现有以下类似警告的错误提示,造成上述错误弹出窗口出现:
[WARN]Warning: Multiple build commands for output file /Developer/build/Release-iphonesimulator/
target引用了名字重复的资源
找到当前的target,展开之后,找到Copy Bundle Resources栏目,然后在里面找到重复名字的资源或本身没资源但此处确有文件的扩展名为.plist和png的文件一一移除,删除不要的那个即可
Command+Q退出重新打开工程项目即可
相关文章推荐
- 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 " 错误
- NDK的错误ERROR: The device does not support the application's targetted CPU ABIs!解决方法
- 如何解决sql server2005的“不允许远程连接”错误.(how to resolve the error: "SQL Server does not allow remote connections" for SQL Server2005)
- 解决Xcode中运行出现"cannot run using the selected device"、"cannot run on the selected destination"或无反应问题
- 关于C#中的错误:The type 'X' does not exists in the "Y"
- 编译错误“The run destination My Mac 64-bit is not valid for Running the scheme '***',解决办法
- 解决NDK交叉编译 selected processor does not support ARM mode libtheora的错误
- 41.【xcode】错误之Could not launch "" failed to get the task for process
- 安装cocoaPods出现错误error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not
- 错误: Could not edit the data in the folder or database selected. The current version does not support editing (base, consistent, or closed)
- xcode "nib but the view outlet was not set."错误
- xcode "nib but the view outlet was not set."错误
- 错误:A field or property with the name 'XXX' was not found on the selected data source 解决
- 使用qtcreator时出现The specified source space "/home/xxx/src" does not exist的错误
- winform "Value does not fall within the expected range"错误
- loaded the "BlueView" nib but the view outlet was not set 错误的解决办法。
- 当eclipse导入工程时报"The builder launch configuration could not be found"错误时的解决方法