Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xcode7.3编译问题 #151

Closed
sakura0720 opened this issue Mar 23, 2016 · 7 comments
Closed

xcode7.3编译问题 #151

sakura0720 opened this issue Mar 23, 2016 · 7 comments

Comments

@sakura0720
Copy link

xcode7.3编译会有这个编译错误:

NSObject+YYAddForKVO.h

方法:- (void)addObserverBlockForKeyPath:(NSString*)keyPath block:(void (^)(__weak id _Nonnull obj, _Nullable id oldVal, _Nullable id newVal))block;

错误:Cannot create __weak reference in file using manual reference counting

@ibireme
Copy link
Owner

ibireme commented Mar 23, 2016

请更新到最新版本(1.0.3)试试,昨天刚改好。

@wy19901227
Copy link

Pod 上最新的还是1.01呀

@ibireme
Copy link
Owner

ibireme commented Mar 23, 2016

执行 pod setup 来更新你的本地列表。

@wy19901227
Copy link

额,是以后xcode在arc 模式下id类型不能用__weak了,还是xcode的bug?

@ibireme
Copy link
Owner

ibireme commented Mar 23, 2016

错误提示说不能在 MRC 下使用 __weak,但这个头文件应该没有被引入 MRC 文件下编译,所以我觉得这可能是 Xcode 的问题。

@wy19901227
Copy link

是啊,我也觉得是xcode问题,所以你这样改了,会引起什么问题吗?

发自我的 iPhone

在 2016年3月23日,16:10,Yaoyuan notifications@github.com 写道:

错误提示说不能再 MRC 下使用 __weak,但这个头文件应该没有被引入 MRC 文件下编译,所以我觉得这可能是 Xcode 的问题。


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

@ibireme
Copy link
Owner

ibireme commented Mar 23, 2016

这块儿代码倒是无所谓。。没什么影响

@ibireme ibireme closed this as completed Apr 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants