analogcode / Swift-Radio-Pro

Professional Radio Station App for iOS!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Searchbar is broken is ios13

thiagobucca opened this issue · comments

Hi,

In the latest version, the searchbar is broken for me. I thinks that's related to some changes in ios13

here's the log:

2019-10-23 15:24:44.412208-0300 SwiftRadio[33029:1387898] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000012f9440> F8BB1C28-BAE8-11D6-9C31-00039315CD46 2019-10-23 15:24:49.480566-0300 SwiftRadio[33029:1387898] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Access to UISearchBar's _searchField ivar is prohibited. This is an application bug' *** First throw call stack: ( 0 CoreFoundation 0x00007fff23baa1ee __exceptionPreprocess + 350 1 libobjc.A.dylib 0x00007fff50864b20 objc_exception_throw + 48 2 CoreFoundation 0x00007fff23baa02c +[NSException raise:format:] + 188 3 UIKitCore 0x00007fff46c4c392 -[UISearchBar _searchField] + 49 4 Foundation 0x00007fff2563de07 -[NSObject(NSKeyValueCoding) valueForKey:] + 317 5 SwiftRadio 0x000000010dd8a22a $s10SwiftRadio22StationsViewControllerC011setupSearchE0yyF + 2250 6 SwiftRadio 0x000000010dd89677 $s10SwiftRadio22StationsViewControllerC11viewDidLoadyyF + 1895 7 SwiftRadio 0x000000010dd8a6ab $s10SwiftRadio22StationsViewControllerC11viewDidLoadyyFTo + 43 8 UIKitCore 0x00007fff46f03d96 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 83 9 UIKitCore 0x00007fff46f08cef -[UIViewController loadViewIfRequired] + 1084 10 UIKitCore 0x00007fff46e6d2b0 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 160 11 UIKitCore 0x00007fff46e6d5b0 -[UINavigationController _startTransition:fromViewController:toViewController:] + 140 12 UIKitCore 0x00007fff46e6e47a -[UINavigationController _startDeferredTransitionIfNeeded:] + 868 13 UIKitCore 0x00007fff46e6f7e5 -[UINavigationController __viewWillLayoutSubviews] + 150 14 UIKitCore 0x00007fff46e51127 -[UILayoutContainerView layoutSubviews] + 217 15 UIKitCore 0x00007fff47a52ad5 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2478 16 QuartzCore 0x00007fff2b06e91d -[CALayer layoutSublayers] + 255 17 QuartzCore 0x00007fff2b073323 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 517 18 QuartzCore 0x00007fff2b07fa7c _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 80 19 QuartzCore 0x00007fff2afc6e54 _ZN2CA7Context18commit_transactionEPNS_11TransactionEd + 324 20 QuartzCore 0x00007fff2affc32f _ZN2CA11Transaction6commitEv + 643 21 UIKitCore 0x00007fff475906cd __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 81 22 CoreFoundation 0x00007fff23b0d09c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12 23 CoreFoundation 0x00007fff23b0c808 __CFRunLoopDoBlocks + 312 24 CoreFoundation 0x00007fff23b07694 __CFRunLoopRun + 1284 25 CoreFoundation 0x00007fff23b06e66 CFRunLoopRunSpecific + 438 26 GraphicsServices 0x00007fff38346bb0 GSEventRunModal + 65 27 UIKitCore 0x00007fff47578dd0 UIApplicationMain + 1621 28 SwiftRadio 0x000000010dd7cd6b main + 75 29 libdyld.dylib 0x00007fff516ecd29 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

Any tips on how to fix this issue?

Thanks

I managed to fix it. The .value(forKey x) statement isn't needed anymore in ios13, i'll be happy to pull request the fix if you want :)