weixin_39958138
2020-12-09 04:29 阅读 0

Unrecognized selector: +[Flurry setSessionReportsOnPauseEnabled:]

Describe the bug Getting a run time crash with message +[Flurry setSessionReportsOnPauseEnabled:]: unrecognized selector sent to class

This Bug is About Please choose the closest item by replacing [ ] with [x]. - [ ] Integration - [x] Analytics - [ ] Ads - [ ] Messaging/Push - [ ] IAP - [ ] Remote Configuration - [ ] Flurry Website/Dashboard - [ ] Other

Platform Please choose the platform(s) that you are having the issue by replacing [ ] with [x]. - [x] iOS - [ ] tvOS - [ ] WatchOS

Environment Please tell us the versions of Flurry SDK, XCode, and iOS you are using. * Flurry SDK: 10.0.0 & 10.0.1 * XCode: 11.1 (11A1027) * iOS: 13.1

To Reproduce Steps to reproduce the behavior: 1. Integrate Flurry 10.0.0 or 10.0.1 with a clean project 2. After session starting code add the line: +[Flurry setSessionReportsOnPauseEnabled:]; 3. No compile time error, the Flurry.h file has the declaration: + (void)setSessionReportsOnPauseEnabled:(BOOL)setSessionReportsOnPauseEnabled; 4. Run the code 5. App crashes on runtime with message: +[Flurry setSessionReportsOnPauseEnabled:]: unrecognized selector sent to class

Screenshots flurry-unrecognized-selector

Additional context Are you using Flurry Push/Messaging? No (iOS) Are you using CocoaPods or manual binary integration? manual binary integration

该提问来源于开源项目:flurry/flurry-ios-sdk

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

6条回答 默认 最新

  • weixin_39804603 weixin_39804603 2020-12-09 04:29

    Hi ,

    Thank you for reporting this issue. Sorry for any inconvenience this may cause. setSessionReportsOnPauseEnabled: and setSessionReportsOnCloseEnabled: are deprecated and accidentally removed from this release. We will release a patch very soon to correctly mark them as deprecated, but please note that these APIs will no longer take any effect so please avoid using them. Currently in v10.x the SDK will report session data when app is sent to background, which is the default behavior of setSessionReportsOnPauseEnabled:.

    Please let me know if you still have any question. Thanks!

    点赞 评论 复制链接分享
  • weixin_39958138 weixin_39958138 2020-12-09 04:29

    Thank you for the update!

    点赞 评论 复制链接分享
  • weixin_39804603 weixin_39804603 2020-12-09 04:29

    Hi ,

    We have already released version 10.0.2 and fixed this issue. Thank you for your feedback!

    点赞 评论 复制链接分享
  • weixin_39958138 weixin_39958138 2020-12-09 04:29

    Thank you -vz. I've tried to manual download it, but getting access denied (https://s3.amazonaws.com/flurrysdk-mbst-pub-ue1/sdks/iPhone/669/flurry_iPhone_sdk.zip). Maybe a temporary issue.

    点赞 评论 复制链接分享
  • weixin_39989688 weixin_39989688 2020-12-09 04:29

    Manual download issue has been fixed. Apologize for the inconvenience. Can you please try again?

    点赞 评论 复制链接分享
  • weixin_39958138 weixin_39958138 2020-12-09 04:29

    Works great, thank you.

    点赞 评论 复制链接分享

相关推荐