I know it sound stilly but this is what happening with my code, On simulator; application works on iPhone SE, iPhone 7 but all other device gives me an error. I don't understand. If the code is wrong then why it works on my different device on simulator
func startTimer (){
timer = Timer.scheduledTimer(timeInterval:TimeInterval(timerBetweenNumbers) , target: self, selector: (#selector(PlayViewController.randomInt)), userInfo: nil, repeats: true)
}
ERROR : 2017-03-23 14:27:15.984926 Anzan[3249:129679] [aqme] 255: AQDefaultDevice (1): skipping input stream 0 0 0x0 fatal error: unexpectedly found nil while unwrapping an Optional value
I am using Xcode 8 and Swift 3
Thanks in advance for help