iOS开发过程中出现错误整理

1、No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv7 armv6).

今天上午开完会,一回来真机调试就报 No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv7 armv6)错误。虚拟机没事,一旦用真机就报这个错误,开始以为是我安装几个软件之后,安装不成功,系统问题。然后就是重装系统,都不成功。最终解决办法:

1.把Build Active Architecture Only 下面的Debug 设为NO release 设置为YES

2.Valid Architectures 设置为 armv7 armv6 就OK 了。

1.Xcode编译出现错误如下:CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 5.0'
解决方法如下:
选择工程->Build Settings -> Code Signing -> Code Signing Identity -> Debug -> Any ios SDK 将选项改为:iPhone Developer

原文:http://blog.csdn.net/abel_tu/article/details/12027443

你可能感兴趣的:(ios,error,报错,ios开发,错误)