解决方法: . 删除DerivedData . 参照上面的链接设置:File -> Workspace Settings -> Build System -> Legacy Build Sysem . 关闭xcode重新打开…
概要: 在我们升级到Xcode9时,最低的编译版本为iOS8,但是在使用一些SDK的时候就会报出Compiling IB documents for earlier than iOS7 is no longer supported. 这句错误,这个时候我们点击错误跳转到Xib或Storyboard中随后按照截图操作,把build for 的版本更改为iOS7.1或以上错误即可解决. 错误提示: 解决办法: 点击问题xib文件,找到Xcode 面板右侧的Interface Builder Docu…
iphone开发出现警告: Sending '__strong typeof (xxx)' (aka 'xxxx *__strong') to parameter of incompatible type 'id<xxx>' 如图: 原因是没有在头文件实现相应协议. 解决方法是在头文件(.h文件)中 @interface 一行后面加上 <协议名> 如图:…
[问题分析]: 这个问题其实是老问题,产生原因就是因为在使用的时候 [UIImage imageNamed:]时,图片不存在或者传入的图片名为nil. [解决方法]: 添加一个系统断点,来判断如果图片名字为nil或者@""的时候,来拦截掉.[操作截图]…
问题 开发环境:xcode6,iPhone6模拟器 xcode工程编译错误:No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386). 原因 导致这个错误的原因主要是CPU的编译架构引起的,Build Active Architecture Only属性设置为了YES(只编译当前模拟器指令集),当出现不兼容设备时就会出现错误. 解决 在工程Build Settings,…
1.Apple LLVM 8.0 Error Group /’all-product-headers.yaml’ not found 最近升级了xcode打包后出现了个BUG,记录解决的方法. 现象:报错误信息:“......'all-product-headers.yaml' not found" 原因:新增加了第三方库 解决: 1.检查工程-Target-Build Settings 设置Defines Module的值是否为YES “Defines Module = YES”  2.工程-…
可能原因一:项目内保存了.framework文件,在复制分发到不同计算机的时候可能会引发该错误 解决方法一:来到Targets->Build Settings->Framework Search Paths,将其内容删除.让xcode不管项目目录下的.framework文件,而是去包含本机的.当然你也可以手动删除它们. 解决方法二:这个是在stack overflow上看到的: I had this same problem, and the solution turned out to be…
1.Xcode打开工程 2.菜单栏Edit--->SpecialCharacters 3.点击它出现…
#import <Foundation/Foundation.h> @interface EOCRectangle : NSObject<NSCoding> @property (nonatomic , readonly , assign) float width; @property (nonatomic , readonly , assign) float height; -(id)initWithWidth:(float) width andHeight:(float) he…
一.真机截屏 1.打开Xcode 6 2.在xcode 选择模拟器或者真机设备的地方选中你的真机 3.Debug-->View Debugging-->Take Screenshot of "你的手机名称" 4.点击就可以在桌面上看到截到的图像 方法二 1.打开Xcode 把手机连接电脑 2.Window-->Devices打开 3.选中你的设备--->点击Take Screenshot 后桌面上就有了 二.模拟器截屏 1.选择需要屏幕截图的模拟器,并开始运行…