我已经在NSCameraUsageDescription和NSPhotoLibraryUsageDescription字段中指定了info.plist文件中所需的文本,但没有任何更改。
总是相同的系统文本“此应用程序需要访问相机”和“此应用程序需要访问图片库”。我已经尝试在代码中找到它了。没有找到。我在文件info.plist中指定的,在我使用的所有库中添加我的NSCameraUsageDescription和NSPhotoLibraryUsageDescription密钥。尽管如此,一切都没有改变。
info.plist文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Mona</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>NSCameraUsageDescription</key>
<string>The program wants to access the camera so you can use your photos and camera in this photo editor.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>The program wants to access the photo gallery so you can use your photos and camera in this photo editor.</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
警报图像
请帮帮我。告诉我如何更改这些查询的描述。
https://stackoverflow.com/questions/55982650
复制相似问题