Rojan Shrestha
Rojan Shrestha

Reputation: 149

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.

    <key>NSCameraUsageDescription</key>
    <string>$(NSCameraUsageDescription)</string>

I have also added the translated string to the infoPlist.strings as

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.

Upvotes: 0

Views: 393

Answers (1)

Eric.JR
Eric.JR

Reputation: 26

info.plist:

<key>NSCameraUsageDescription</key>
<string>App wants to user your camera to scan the bill and scan the QR code</string>

infoPlist.strings:

NSCameraUsageDescription" = "App wants to user your camera to scan the bill and scan the QR code";

Upvotes: 1

Related Questions