Guest User

Untitled

a guest
Mar 17th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. override func viewDidAppear(_ animated: Bool) {
  2. super.viewDidAppear(animated)
  3. Timer.scheduledTimer(withTimeInterval: 1, repeats: false) { t in
  4.  
  5. let u = XXXXXgetUsername()
  6. let p = XXXXXgetPassword()
  7.  
  8. if (u == "" || p == "") {
  9. self.performSegue(withIdentifier: "gotoLogin", sender: self)
  10. } else {
  11. if (getPIN() != "" && !pinVerified) {
  12. self.performSegue(withIdentifier: "gotoPIN", sender: self)
  13. } else {
  14. //FAILS at this segue
  15. self.performSegue(withIdentifier: "gotoHome", sender: self) //LINE 37
  16. }
  17. }
  18. }
  19.  
  20. (lldb) bt
  21. * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
  22. frame #0: 0x0000000103ff8f11 libobjc.A.dylib`objc_exception_throw
  23. frame #1: 0x0000000105702079 CoreFoundation`-[NSException raise] + 9
  24. frame #2: 0x0000000103a17a63 Foundation`-[NSObject(NSKeyValueCoding)
  25. setValue:forKey:] + 292
  26. frame #3: 0x0000000106745117 UIKit`-[UIViewController setValue:forKey:] + 87
  27. frame #4: 0x0000000106f6bea3 UIKit`-[UINibKeyValuePair apply] + 63
  28. frame #5: 0x00000001056a53cd CoreFoundation`-[NSArray
  29. makeObjectsPerformSelector:] + 317
  30. frame #6: 0x0000000106a355d0 UIKit`-[UINib instantiateWithOwner:options:] +
  31. 1837
  32. frame #7: 0x0000000106ec5fc2 UIKit`-[UIStoryboard
  33. instantiateViewControllerWithIdentifier:] + 181
  34. frame #8: 0x0000000106ed5874 UIKit`-[UIStoryboardSegueTemplate
  35. instantiateOrFindDestinationViewControllerWithSender:] + 90
  36. frame #9: 0x0000000106ed5ab8 UIKit`-[UIStoryboardSegueTemplate _perform:] + 52
  37. frame #10: 0x0000000106750324 UIKit`-[UIViewController
  38. performSegueWithIdentifier:sender:] + 99
  39. * frame #11: 0x0000000102356516 XXXXXIOS`closure #1 in
  40. StartupViewController.viewDidAppear(t=0x0000608000167ec0,
  41. self=0x00007ffd4ed061d0) at StartupViewController.swift:37
  42. frame #12: 0x00000001023565ea XXXXXIOS`partial apply for closure #1 in
  43. StartupViewController.viewDidAppear(_:) at StartupViewController.swift:0
  44. frame #13: 0x000000010222fcee XXXXXIOS`thunk for @callee_owned (@owned Timer)
  45. -> () at SensorViewController.swift:0
  46. frame #14: 0x0000000103a60b1e Foundation`__NSFireTimer + 83
  47. frame #15: 0x0000000105692174
  48. CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
  49. frame #16: 0x0000000105691e32 CoreFoundation`__CFRunLoopDoTimer + 1026
  50. frame #17: 0x00000001056919ea CoreFoundation`__CFRunLoopDoTimers + 266
  51. frame #18: 0x0000000105689404 CoreFoundation`__CFRunLoopRun + 2308
  52. frame #19: 0x0000000105688889 CoreFoundation`CFRunLoopRunSpecific + 409
  53. frame #20: 0x000000010d3929c6 GraphicsServices`GSEventRunModal + 62
  54. frame #21: 0x00000001065a55d6 UIKit`UIApplicationMain + 159
  55. frame #22: 0x000000010243a2a7 XXXXXIOS`main at AppDelegate.swift:13
  56. frame #23: 0x00000001093d6d81 libdyld.dylib`start + 1
Add Comment
Please, Sign In to add comment