应用程序崩溃NSDate消息发送到解除分配的实例?

时间:2016-05-14 00:26:02

标签: ios xcode swift nsdate nszombie

当我启动我的应用时,它会崩溃并且我收到此错误:

enter image description here

启用Zombies对象后,我在日志中收到此错误:

  

- [__ NSDate dealloc]:发送到解除分配的实例0x16765ce0的消息

更新:

我使用了Profile(Cmd + I),我用xcode选择了NSZombie,我得到了这个:

enter image description here

我用户fliclib的代码是:

import UIKit
import GoogleMaps
import FBSDKLoginKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

        FlicAuth.sharedInstance
        return true
    }
}

import Foundation
import CoreBluetooth

class FlicAuth: NSObject, SCLFlicManagerDelegate, SCLFlicButtonDelegate {
    static let sharedInstance = FlicAuth()
    var flicButton: SCLFlicButton!
    var flicButtons = [SCLFlicButton]()
    var flicError: Int!

    override init() {
        super.init()

        SCLFlicManager.configureWithDelegate(self, defaultButtonDelegate: self, appID: FlicAppId, appSecret: FlicAppSecret, backgroundExecution: false)

    }

    func requestButton(){
        SCLFlicManager.sharedManager()?.grabFlicFromFlicAppWithCallbackUrlScheme("grabButton")
    }

    func flicManager(manager: SCLFlicManager, didGrabFlicButton button: SCLFlicButton?, withError error: NSError?) {
        if (error != nil) {
            print("Error: \(error!.domain) - \(error!.code)")
            return
        }

        button?.delegate = self
        button?.triggerBehavior = .ClickAndDoubleClickAndHold
        button?.connect()
        flicButtons.append(button!)
    }
}

我的fliclib:https://github.com/50ButtonsEach/fliclib-ios

知道为什么我会遇到nsdate问题吗?

0 个答案:

没有答案