error收集
Yancey_Chan
ios菜鸟
展开
-
Expression is not assignable
你的问题是:self.view.frame.size.height = 100f; 这样写没法通过编译,编译器会报错”expression is not assignable”原因是,这句话里面的几个点有两种不同的含义。self.view.frame是Objective-C语法,是读取view属性的frame属性,在Objective-C中使用点来访问属性只是一种语法糖,所以self.view.f转载 2015-06-11 10:39:57 · 1305 阅读 · 0 评论 -
Use of undectared identifier '_xxxx'
今天自定义一个继承UITextField的textField的时候,设置变量_borderColor的setter和getter方法的时候,出现了这样的报错#import <UIKit/UIKit.h>IB_DESIGNABLE@interface CYSTextField : UITextField@property (strong, nonatomic) IBInspectable UIC原创 2015-08-03 16:14:22 · 568 阅读 · 0 评论 -
Undefined symbols for architecture i386
项目新添加了一个第三方framework,结果编译提示错误了。 检查了一下Link Binary With Libraries 发现是有添加这个库的,而且还有2个。。。 删除一个,再编译,失败, 删除两个,再重新添加,编译,继续失败是不是因为这个库只能在真机情况下才能编译成功??明天拿真机来试试看。原创 2015-07-02 13:52:45 · 272 阅读 · 0 评论 -
Pods written in Swift can only be integrated as frameworks
[!] Pods written in Swift can only be integrated as frameworks; this feature is still in beta. Add use_frameworks! to your Podfile or target to opt into using it. The Swift Pods being used are: Box, Re原创 2015-09-23 14:30:21 · 2235 阅读 · 0 评论 -
UICollectionView must be initialized with a non-nil layout parameter
创建UICollectionView 的时候,运行报错 查了下原因,是因为没有给UICollectionView 传UICollectionViewFlowLayout对象导致的,加上了就不会出现上面的报错原创 2016-01-26 11:00:41 · 4737 阅读 · 0 评论 -
Could not instantiate class named IBNSLayoutConstraint
Terminating app due to uncaught exception ‘NSInvalidUnarchiveOperationException’, reason: ‘Could not instantiate class named IBNSLayoutConstraint’突然出现这样的error,研究了一下,将对应的XIB的sizeclass的选项关掉,再打开,程序就不会崩溃了。原创 2016-03-03 17:28:56 · 1831 阅读 · 0 评论 -
No know instance method for selector 'respondsToSelector:'
错误提示:No know instance method for selector'respondsToSelector:'之前写代理的时候,都没有去调用respondsToSelector:去检查我们的代理者有没有实现对应的方法。最近感觉不管是出于代码规范还是程序的安全性,都应该加上这个检查。于是就出现了这样的错误。于是查了一下respondsToSelector:究竟是谁的方法。好吧,由于我定义原创 2016-03-17 11:25:28 · 2842 阅读 · 0 评论 -
微信SDK Undefined symbols for architecture arm64:
在打开微信Demo的时候,出现上面的错误。 加上Security.framework就好了原创 2016-04-06 11:45:05 · 2055 阅读 · 0 评论 -
ld: library not found for -lAFNetworking
又是这个错误提示。不过这次的情况有点特别。 同事在一个接过来维护的工程中添加cocoapods第三方库管理,添加AFNetWorking。之后我copy下来本地,是能正常使用的 我们先看看此时的设置 但是当我使用AFNetWorking的时候,问题就出现了。(先用pod install一下)[!] The `Amway_boku_iphone [Debug]` target overrides原创 2016-04-29 11:13:52 · 4287 阅读 · 0 评论