2016-07-29 85 views

回答

10

如果輸出日誌是這樣的:

相機使用
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> 

您可能忽略的權限。

解決方案是將「隱私 - 相機使用說明」鍵添加到Info.plist中。

Picture of my plist that works

Here's a link to an Apple Developer Forum discussion explaining why this occurs.

+0

這隻能部分地回答了這個問題 - 請大家討論,像這樣的評論。 – techydesigner

+1

@techydesigner這是我第一次回答SO問題。您能否/會提供更多關於參與精神缺失的信息?我相信我指出了錯誤的症狀(打印的日誌)和潛在的修復。 –

+0

雖然確實如此,但請明確指出您的修補程序僅適用於某種情況。 – techydesigner

相關問題