[英]Missing Purpose String in Info.plist while uploading app to testlight with a localized app
I have added the required permission in info.plist with the variable name as the strings are localized to multiple languages.由于字符串已本地化为多种语言,因此我已在 info.plist 中使用变量名添加了所需的权限。
<key>NSCameraUsageDescription</key>
<string>$(NSCameraUsageDescription)</string>
I have also added the translated string to the infoPlist.strings as我还将翻译后的字符串添加到 infoPlist.strings 作为
NSCameraUsageDescription" = "App wants to user your camera to scan the bill and scan the QR code";
This works perfectly while running the app however, shows the missing purpose string error while uploading the app in testflight.这在运行应用程序时完美运行,但是在 testflight 中上传应用程序时显示缺少目的字符串错误。
Add this NSCameraUsageDescription in your infoPlist在你的 infoPlist 中添加这个 NSCameraUsageDescription
<key>NSCameraUsageDescription</key>
<string>The reason for access to camera is…</string>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.