Eureka icon indicating copy to clipboard operation
Eureka copied to clipboard

NSInvalidArgumentException +[UIImage systemImageNamed:] 13.0.0 <= iOS version < 13.4.0

Open Tulakshana opened this issue 4 years ago • 8 comments

pod 'Eureka', '~> 5.2.1'

  • Make sure you are using Eureka latest release or master branch version.
  • Make sure your Xcode version is the latest stable one.

Issue not previously reported

  • Check if the issue was already reported or fixed. We add labels to each issue in order to easily find related issues. If you found a match add a brief comment "I have the same problem" or "+1".
  • Environment: Eureka 5.2.1 Xcode 11.4.1 13.0.0 <= iOS version < 13.4.0

  • Stack trace from Crashlytics Screen Shot 2020-06-09 at 9 48 43 AM

  • Eureka form/section/row code Screen Shot 2020-06-09 at 11 05 40 AM

My team and I concluded that Apple is at fault here for the following reasons,

  • We didn't see it happening in iOS versions > 13.4.0 so Apple might have fixed the issue
  • This was not the only selector/property iOS failed to recognize in 13.0.0 <= iOS version < 13.4.0. We observed that some other selectors and properties introduced in iOS 13 were also throwing the same error and result in a crash. e.g. UISearchTextField property of UISearchBar also caused the same problem in 13.0.0 <= iOS version < 13.4.0.

The solution is to check the minor version also. if #available(iOS 13.4.0, *)

I'm reporting this here thinking that it will help someone.

Tulakshana avatar Jun 09 '20 18:06 Tulakshana

Thanks for reporting this and for the investigation too.

mats-claassen avatar Jun 15 '20 12:06 mats-claassen

Hey @Tulakshana I've tried to replicate your issue but I couldn't. I'm using Xcode 11.5 and an iOS 13.1.3 device. Can you send an example code where the issue happens?

nicolantean avatar Jun 17 '20 12:06 nicolantean

@nicolantean, we were also not able reproduce it ourselves. Only evidence we have is the crash report.

Tulakshana avatar Jun 18 '20 03:06 Tulakshana

Does that crash happen to all your users that have iOS devices with versions between 13.0 and 13.4 or only some specific ones?

nicolantean avatar Jun 18 '20 18:06 nicolantean

Good question. Looks like it is a subset.

Tulakshana avatar Jun 24 '20 15:06 Tulakshana

We are seeing this issue on > iOS 14. Cannot repro, just seeing it in crash logs.

Screen Shot 2021-03-19 at 3 12 54 PM

crgt5252 avatar Mar 19 '21 20:03 crgt5252

Yes, we also ended up commenting out code specific iOS 13 and above.

Tulakshana avatar Mar 21 '21 21:03 Tulakshana

In my case, it happens with Jailbroken devices.

スクリーンショット 2021-04-05 9 42 43

hongmh avatar Apr 05 '21 00:04 hongmh