User defined camera with AVFoundation Crash At Xcode8

When I update to Xcode8 and start my custom camera then crash ,console log is:

'2016-07-08 16:41:11.268943 project-name[362:56625] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles

2016-07-08 16:41:11.272276 project-name[362:56625] [MC] Reading from public effective user settings.

2016-07-08 16:41:11.356590 project-name[362:56700] [access] <private>

'

Then I try to call system camera , console log the same.

I wanna know how to solve this problem,thank for help!

Accepted Reply

Hi you just need to add "Privacy - Camera Usage Description" in your Info.plist.


Reference:

https://developer.apple.com/library/prerelease/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html

Replies

Hi you just need to add "Privacy - Camera Usage Description" in your Info.plist.


Reference:

https://developer.apple.com/library/prerelease/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html

Thanks very much,your answer solved my problem.

But when I running again,crash and log is

'Message from debugger: The LLDB RPC server has crashed. Please file a bug with Apple with the crash log.'

Although the camera is still running,but in console is disconnect and log crash.

May be the problem come from version of Xcode 8.0 beta2,besides not reason can explain why the problem appear

in the newest version of Xcode

Hello, as you said, I had added 'Privacy - Camera Usage Description', and there is no bug, but it still console log:

2016-09-20 16:01:02.035061 GaeaLocalNotificationDemo[1576:349524] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles

2016-09-20 16:01:02.035822 GaeaLocalNotificationDemo[1576:349524] [MC] Reading from public effective user settings.


I don't know what's wrong ? Can you help me ?

As Bear Grylis says, I set camera permissions in info.plist and app runs fine, but still get this in the console.


....System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles...Reading from public effective user settings.

This does not work. I have added the permission in the info.plist and I still get the following:


2016-10-03 21:32:44.345156 project[10017:2678833] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles

2016-10-03 21:32:44.349956 project[10017:2678833] [MC] Reading from public effective user settings.

This is still a problem for me.... iOS 10, XCode 8

I get a prompt to allow permissions to which I answer yes. The camera preview layer doesn't show and the log states:



2016-11-13 14:57:53.141952 project[6460:2169642] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles

2016-11-13 14:57:53.143678 project[6460:2169642] [MC] Reading from public effective user settings.