[英]APP crash in debug mode but work fine in release mode on iOS 8
APP work fine on iOS 9 and iOS 10.However,on iOS 8,it crash when run in debug mode but work fine in release mode. APP可以在iOS 9和iOS 10上正常运行,但是在iOS 8上,它在调试模式下运行时会崩溃,但在发布模式下则可以正常运行。
The error code is: 错误代码为:
[RACObserve(self.scrollView, contentOffset) subscribeNext:^(id x) {
NSInteger currentTableViewTag = self.scrollView.contentOffset.x / screenWidth;
NSLog(@"current tableView tag:%ld",(long)currentTableViewTag);
self.currentTableView = [self viewWithTag:currentTableViewTag];
}];
The console log info is: 控制台日志信息为:
-[UIScrollView rac_valuesForKeyPath:observer:]: unrecognized selector sent to instance 0x178153f0 -[UIScrollView rac_valuesForKeyPath:observer:]:无法识别的选择器已发送到实例0x178153f0
The ReactiveCocoa version is: ReactiveCocoa版本是:
pod 'ReactiveCocoa','~>2.1.8'
My build setting is: 我的构建设置是:
My try: 我的尝试:
My question is: 我的问题是:
What's wrong with ReactiveCocoa?Why in release mode it is OK but in debug it's crash on iOS 8? ReactiveCocoa怎么了?为什么在发布模式下可以,但是在调试时它在iOS 8上崩溃了?
Hope someone can give an advice. 希望有人能给个建议。
当我将Pods放入.gitignore时,然后进行pod安装即可解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.