miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
11/20/16 05:55 AM (8 years ago)

Camera doesn't work on Xcode 8

In all my iOS apps which uses camera, when I want to take a photo, app stops. Any suggestion?
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
11/21/16 01:50 PM (8 years ago)
Are you testing on an actual device or the simulator?
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
11/22/16 04:40 AM (8 years ago)
On iPhone and iPad. I tested Spot Finder and Email Image plugins.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
11/22/16 07:45 PM (8 years ago)
Can you post your debug output here? Just a chunk before the crash.
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
11/23/16 12:50 AM (8 years ago)
Thanks Red Dog, I found this: "The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data." I added NSCameraUsageDescription and now it works.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
11/23/16 03:24 AM (8 years ago)
Good job. You will need to do the same for the photo library too, if you want to give access.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.