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

请问有没有适配Xcode9呢 在Xcode9的情况下似乎会有一些问题 #2

Open
JXCP opened this issue Oct 31, 2017 · 5 comments

Comments

@JXCP
Copy link

JXCP commented Oct 31, 2017

Xode9适配 demo中有些crash没有hold住

@hongruqi
Copy link
Owner

能具体贴一下,是那些没hold住?

@hongruqi
Copy link
Owner

@JXCP

@JXCP
Copy link
Author

JXCP commented Oct 31, 2017

奔溃示例 数组越界 我看了下似乎没有找到hold 数组越界的类
NSArray *emptyArr = [NSArray new];
NSLog(@"%@",[emptyArr objectAtIndex:3]);

@hongruqi
Copy link
Owner

@JXCP
数组越界,之前有做。但是有人反馈,苹果审核对objc_getClass("__NSArrayI") 的方案进行了拒绝通过。 同时在debug环境上,发现一个bug,键盘显示的时候,退到后台,在启动程序,会出现crash。所以去掉了NSArray的hold。

@JXCP
Copy link
Author

JXCP commented Oct 31, 2017

@hongruqi
可否在NSJSONSerialization中添加下面这种hold 我发现项目中这种方法用的还是比较多的
NSData *data = nil;
NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];

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

2 participants