JSSAlertView: Crash on iOS10 Xcode 8 - Swift 3

Hey,

After update my Xcode, and using Swift 3, I’m having a crash on showing JSSAlrtView. Can you please help me on that? I really love your framework, and would be so sad stop using that due this issue 😕 The problem seems to be related to the “text” parameter. The crash only happens when I add this parameter to the “show” method. All other parameters seems to be working fine.

Ps.: I tried to debug, but it crashes on the part Xcode shows Assembly code. I’m not advanced on programming, then I’m not able to figure the problem out. And plus, the icon on Swift 3 keeps aligned to the left, not in the center.

There is an image attached, showing the alert working without text, and the image aligned to the left.

If you guys need any info else, please let me know.

Thanks a lot in advance.

2016-09-08 19:43:47.896 Gplayces[6195:1609467] -[_SwiftValue pointSize]: unrecognized selector sent to instance 0x7d074570
2016-09-08 19:43:47.904 Gplayces[6195:1609467] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_SwiftValue pointSize]: unrecognized selector sent to instance 0x7d074570'
*** First throw call stack:
(
    0   CoreFoundation                      0x0168a212 __exceptionPreprocess + 194
    1   libobjc.A.dylib                     0x009ffe66 objc_exception_throw + 52
    2   CoreFoundation                      0x017033dc -[NSObject(NSObject) doesNotRecognizeSelector:] + 172
    3   CoreFoundation                      0x0160934c ___forwarding___ + 1052
    4   CoreFoundation                      0x01608f0e _CF_forwarding_prep_0 + 14
    5   UIFoundation                        0x0b691087 __NSStringDrawingEngine + 4090
    6   UIFoundation                        0x0b69005f -[NSString(NSExtendedStringDrawing) boundingRectWithSize:options:attributes:context:] + 188
    7   Gplayces                            0x000ad487 _TFC8Gplayces12JSSAlertView21viewDidLayoutSubviewsfT_T_ + 7447
    8   Gplayces                            0x000aee62 _TToFC8Gplayces12JSSAlertView21viewDidLayoutSubviewsfT_T_ + 34
    9   UIKit                               0x024ac811 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1598
    10  libobjc.A.dylib                     0x00a151b9 -[NSObject performSelector:withObject:] + 59
    11  QuartzCore                          0x02261769 -[CALayer layoutSublayers] + 141
    12  QuartzCore                          0x02254a47 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 401
    13  QuartzCore                          0x0225489d _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 21
    14  QuartzCore                          0x021de49f _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 339
    15  QuartzCore                          0x0220d290 _ZN2CA11Transaction6commitEv + 498
    16  QuartzCore                          0x0220eda0 _ZN2CA11Transaction17flush_transactionEv + 38
    17  UIKit                               0x0240685c _afterCACommitHandler + 375
    18  CoreFoundation                      0x0162976e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
    19  CoreFoundation                      0x016296c7 __CFRunLoopDoObservers + 391
    20  CoreFoundation                      0x0160d3a6 __CFRunLoopRun + 1414
    21  CoreFoundation                      0x0160cbab CFRunLoopRunSpecific + 395
    22  CoreFoundation                      0x0160ca0b CFRunLoopRunInMode + 123
    23  GraphicsServices                    0x063c6b4c GSEventRunModal + 177
    24  GraphicsServices                    0x063c69c7 GSEventRun + 80
    25  UIKit                               0x023d77fb UIApplicationMain + 148
    26  Gplayces                            0x00064ee1 main + 145
    27  libdyld.dylib                       0x04d78799 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

simulator screen shot 8 sep 2016 20 56 42

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 19 (7 by maintainers)

Most upvoted comments

@alissonbarauna that would be awesome!! If you can please send it to me and I’ll take care of pull requests and cocoa pods.