问题描述:

When I launch my app it crashes and I'm getting this error :

and after enabling Zombies object I get this error in log :

-[__NSDate dealloc]: message sent to deallocated instance 0x16765ce0

Update :

I used Profile (Cmd + I) and i choosed NSZombie with xcode and i got this :

My code where i user fliclib is :

import UIKit

import GoogleMaps

import FBSDKLoginKit

@UIApplicationMain

class AppDelegate: UIResponder, UIApplicationDelegate {

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

FlicAuth.sharedInstance

return true

}

}

And

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!)

}

}

My fliclib : https://github.com/50ButtonsEach/fliclib-ios

Any idea why I'm getting the nsdate problem ?

相关阅读:
Top