在Swift的iOS 10之前,权限不起作用
问题描述:
我已经在 Info.plist
中定义了相机和照片库的权限,并且在iOS 10中运行良好,但在iOS 10之前无效。
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.
Privacy - Camera Usage Description : $(PRODUCT_NAME) camera use
照片库许可:
Photo Library Permission:
Privacy - Photo Library Usage Description : $(PRODUCT_NAME) photo use
请,建议我。
答
set '$(PRODUCT_NAME)' to "Bundle Display Name" in plist is the thing that worked for me