iOS App Terminating due to uncaught exception with no stack trace (Swift) -


i writing code animating ui elements in app. app worked fine until changed alpha on ui elements, when got error:

libc++abi.dylib: terminating uncaught exception of type nsexception 

there no stack trace or indication of error might in output, signal sigabrt pointing appdelegate class.

the app worked on previous build , changed after alpha settings, undid try , debug situation. have tried disabling parts of code modified such game center , have tried setting breakpoints cannot app work.

my question - error , coming from?

here code modified if need see it:

//this code called in game center authentication method          uiview.animate(withduration: 0.5, animations: {                         self.pointsindicator.center.x += self.view.bounds.width                        // self.pointsindicator.alpha = 1                     })                     uiview.animate(withduration: 0.5, delay: 0.3, options: [], animations: {                         self.pointslabel.center.x += self.view.bounds.width                        // self.pointslabel.alpha = 1                         }, completion: nil) 

view appear:

override func viewwillappear(_ animated: bool) {      //setup animations     print("\(progbar.center.x) before")     pointsindicator.center.x  -= view.bounds.width     pointslabel.center.x -= view.bounds.width     progbar.center.x -= view.bounds.width     masterlabel.center.x -= view.bounds.width      pointsindicator.alpha = 0     pointslabel.alpha = 0     progbar.alpha = 0     masterlabel.alpha = 0  } 

update: ran bt command on debugger. output:

* thread #1: tid = 0x6646da, 0x0000000110607e6e libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal sigabrt frame #0: 0x0000000110607e6e libsystem_kernel.dylib`__pthread_kill + 10 frame #1: 0x000000011063e8fb libsystem_pthread.dylib`pthread_kill + 90 frame #2: 0x00000001103570b3 libsystem_c.dylib`abort + 129 frame #3: 0x000000010fe6243a libc++abi.dylib`abort_message + 266 frame #4: 0x000000010fe86a9f libc++abi.dylib`default_terminate_handler() + 267 frame #5: 0x000000010985359f libobjc.a.dylib`_objc_terminate() + 103 frame #6: 0x000000010fe83c09 libc++abi.dylib`std::__terminate(void (*)()) + 8 frame #7: 0x000000010fe83894 libc++abi.dylib`__cxa_rethrow + 99 frame #8: 0x00000001098534b7 libobjc.a.dylib`objc_exception_rethrow +  40 frame #9: 0x0000000106c07bf1 corefoundation`cfrunlooprunspecific + 433 frame #10: 0x0000000107d4ac00 uikit`-[uiapplication _run] + 459 frame #11: 0x0000000107d50e8b uikit`uiapplicationmain + 159 * frame #12: 0x000000010681423f mathsrobot learnmaths`main + 111 @     appdelegate.swift:19 frame #13: 0x00000001102ab6bd libdyld.dylib`start + 1 frame #14: 0x00000001102ab6bd libdyld.dylib`start + 1 

update: appdelegate:19

@uiapplicationmain class appdelegate: uiresponder, uiapplicationdelegate { 


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -