应用名称未出现在权限请求警报中 [英] app name doesn't appear in permission request alert
本文介绍了应用名称未出现在权限请求警报中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用UIImagePickerController允许用户从设备中选择图像.
I am using UIImagePickerController to allow the user to pick images from the device.
第一次执行此操作时,我收到标准权限请求警报,但缺少应用名称.
When doing it the first time, I get a standard permission request alert, but the app name is missing..
我在文档中找不到任何提及.
I couldn't find any mention for this in the documentation.
imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
imagePickerController.mediaTypes = @[(NSString *)kUTTypeImage];
[self presentViewController:imagePickerController animated:YES completion:nil];
其他权限请求(例如定位服务)正在正确显示应用名称.
Other permission request (like location services) are displaying the app name appropriately.
推荐答案
由于某种原因,info.plist中的捆绑包显示名称为空白.
for some reason, bundle display name in info.plist was blank..
将其更改回$(PRODUCT_NAME)
并解决了问题
changed it back to $(PRODUCT_NAME)
and issue is solved
这篇关于应用名称未出现在权限请求警报中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文