watson-developer-cloud / visual-recognition-coreml

Classify images offline using Watson Visual Recognition and Core ML
Apache License 2.0
490 stars 77 forks source link

Doesn't Run on a Physical Device, only runs in Simulator #47

Closed sollywelch closed 4 years ago

sollywelch commented 4 years ago

Upon attempting to run the "CoreML Custom" on a physical device it just produces a Thread 1: Signal SIGBART error. However, running on a simulator it works fine?? P

bourdakos1 commented 4 years ago

My guess is either a camera permission error, or the camera view IBOutlet is broken. Mainly, something wrong with the camera, because the camera isn’t used in the simulator

sollywelch commented 4 years ago

Thanks for your reply, that's what I was thinking; it was something to do with the camera permissions. However, after a few hours, I removed all the IBOutlet links between the delegate and the storyboard and tested each one and it turns out that it's the "Simulator Text..." that was causing the error. I didn't need it at all so removed it and all the links. Sorted all my problems!