Permission is not working prior iOS 10 in Swift

半腔热情 提交于 2019-12-24 04:55:07

问题


I have defined the permission of Camera and Photo library in Info.plist and is working fine in iOS 10 but it is not working prior iOS 10.

Camera Permission:

Privacy - Camera Usage Description : $(PRODUCT_NAME) camera use

Photo Library Permission:

Privacy - Photo Library Usage Description : $(PRODUCT_NAME) photo use

Please,suggest me something.


回答1:


set '$(PRODUCT_NAME)' to "Bundle Display Name" in plist is the thing that worked for me


来源:https://stackoverflow.com/questions/41759601/permission-is-not-working-prior-ios-10-in-swift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!