Guest User

Untitled

a guest
Dec 17th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 KB | None | 0 0
  1. Exception Type: EXC_BREAKPOINT (SIGTRAP)
  2. Exception Codes: 0x0000000000000001, 0x0000000104da9630
  3. Termination Signal: Trace/BPT trap: 5
  4. Termination Reason: Namespace SIGNAL, Code 0x5
  5. Terminating Process: exc handler [0]
  6. Triggered by Thread: 0`
  7.  
  8. Thread 0 name:
  9. Thread 0 Crashed:
  10. 0 Magistat 0x0000000104da9630 _T08Magistat14HomeControllerC11viewDidLoadyyF + 9916 (HomeController.swift:0)
  11. 1 Magistat 0x0000000104da96e4 _T08Magistat14HomeControllerC11viewDidLoadyyFTo + 28 (HomeController.swift:0)
  12. 2 UIKit 0x000000018aef4efc -[UIViewController loadViewIfRequired] + 1040 (UIViewController.m:3110)
  13. 3 UIKit 0x000000018af9c5ec -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 76 (UINavigationController.m:6327)
  14. 4 UIKit 0x000000018af9ba8c -[UINavigationController _startTransition:fromViewController:toViewController:] + 196 (UINavigationController.m:6362)
  15. 5 UIKit 0x000000018af9b490 -[UINavigationController _startDeferredTransitionIfNeeded:] + 1168 (UINavigationController.m:6583)
  16. 6 UIKit 0x000000018af9af0c -[UINavigationController __viewWillLayoutSubviews] + 164 (UINavigationController.m:6854)
  17. 7 UIKit 0x000000018af9ae0c -[UILayoutContainerView layoutSubviews] + 188 (UILayoutContainerView.m:87)
  18. 8 UIKit 0x000000018aef22f8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1276 (UIView.m:15018)
  19. 9 QuartzCore 0x0000000185aabec8 -[CALayer layoutSublayers] + 184 (CALayer.mm:9200)
  20. 10 QuartzCore 0x0000000185aaffa8 CA::Layer::layout_if_needed(CA::Transaction*) + 332 (CALayer.mm:9080)
  21. 11 QuartzCore 0x0000000185a1ea98 CA::Context::commit_transaction(CA::Transaction*) + 336 (CALayer.mm:2392)
  22. 12 QuartzCore 0x0000000185a44eb4 CA::Transaction::commit() + 540 (CATransactionInternal.mm:425)
  23. 13 UIKit 0x000000018b170174 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 140 (UIApplication.m:10033)
  24. 14 CoreFoundation 0x0000000181a660fc __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20 (CFRunLoop.c:1840)
  25. 15 CoreFoundation 0x0000000181a659cc __CFRunLoopDoBlocks + 288 (CFRunLoop.c:1881)
  26. 16 CoreFoundation 0x0000000181a636dc __CFRunLoopRun + 1068 (CFRunLoop.c:2922)
  27. 17 CoreFoundation 0x0000000181983fb8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
  28. 18 GraphicsServices 0x000000018381bf84 GSEventRunModal + 100 (GSEvent.c:2245)
  29. 19 UIKit 0x000000018af582e8 UIApplicationMain + 208 (UIApplication.m:3949)
  30. 20 Magistat 0x0000000104c678c8 main + 56 (IAPHandler.swift:16)
  31. 21 libdyld.dylib 0x00000001814a656c start + 4
  32.  
  33. import StoreKit
  34.  
  35. let IAPHandler = IAPHelper(productIds: [hideAdsIdentifier])
  36. public typealias ProductsRequestCompletionHandler = (_ success: Bool, _ products: [SKProduct]?) -> ()
  37. open class IAPHelper: NSObject, SKProductsRequestDelegate, SKPaymentTransactionObserver {
  38.  
  39. fileprivate let productIdentifiers: Set<String>
  40. // THIS EXACT LINE CRASHES, ORIGINAL FILE HAS EMPTY LINE HERE
  41. public func buyProduct(_ product: SKProduct) { let payment = SKPayment(product: product); SKPaymentQueue.default().add(payment) }
  42. public func restorePurchases() { SKPaymentQueue.default().restoreCompletedTransactions() }
  43.  
  44. public class func canMakePayments() -> Bool { return SKPaymentQueue.canMakePayments() }
  45. }
Add Comment
Please, Sign In to add comment