当我启动我的应用时,它会崩溃并且我收到此错误:
启用Zombies对象后,我在日志中收到此错误:
- [__ NSDate dealloc]:发送到解除分配的实例0x16765ce0的消息
更新:
我使用了Profile(Cmd + I),我用xcode选择了NSZombie,我得到了这个:
我用户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问题吗?