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