简体   繁体   English

APP在调试模式下崩溃,但在iOS 8上的发布模式下运行正常

[英]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: 我的尝试:

  1. Change RAC version to 2.5 but build faild. 将RAC版本更改为2.5,但是构建失败。
  2. Search on Google but no want answer. 在Google上搜索,但不想回答。

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.

相关问题 具有Objective-C的应用程序,在发布模式下启动时快速代码崩溃,调试模式良好 - app with Objective-C and swift code crash at launch in release mode, debug mode fine React Native 应用程序在发布模式下崩溃,但在调试模式下工作正常 - React Native app crashes in release mode but works fine in debug mode iOS App Crash仅处于发布模式? - IOS App Crash's only in Release mode? iOS应用程序中调试和发布模式的语言是否不同? - Different language for debug and release mode in iOS app? iOS应用在发布模式下崩溃,在调试模式下工作 - iOS app crashing in release mode, works in debug mode 反应本机应用程序在调试模式下工作,但在 ios 上不工作发布模式 - react native app works on debug mode, but not works release mode on ios iOS应用在调试模式下崩溃,在发布模式下工作 - iOS app crashing in debug mode, working in release mode MPMoviePlayerViewController可以在调试时正常工作,但在iOS9发行版中崩溃 - MPMoviePlayerViewController work fine with debug but crash in release on iOS9 发布/临时构建失败,但在调试模式下工作(ios) - Fail in release/Adhoc build But work in debug mode (ios) ios应用程序可以在调试模式下完美运行,但在发行时崩溃 - ios app runs perfectly in debug mode but crashes in release
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM