添加了info.plist时,iOS应用程序缺少目的字符串

时间:2020-01-17 10:35:05

标签: ios app-store info.plist

我的ios应用现在被拒绝了3次,因为info.plist中缺少目的字符串。苹果说我必须添加用途字符串以用于位置使用。我补充道,有趣的是,它在info.plist中,但是由于某种原因,手机和Apple都找不到。我做错了什么?

这是我的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>CFBundleDisplayName</key>
    <string>----</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
    <key>CFBundleVersion</key>
    <string>1.1</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>MinimumOSVersion</key>
    <string>13.0</string>
    <key>UIDeviceFamily</key>
    <array>
        <integer>1</integer>
    </array>
    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
    <key>UIMainStoryboardFile</key>
    <string>Main</string>
    <key>UIMainStoryboardFile~ipad</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>CFBundleIdentifier</key>
    <string>-----</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <array>
        <string>App would like to use location to track the exact location of the vehicle in real time. Also notify our warehouses when the driver is arriving.</string>
    </array>
    <key>NSLocationAlwaysUsageDescription</key>
    <array>
        <string>App would like to use location to track the exact location of the vehicle in real time. Also notify our warehouses when the driver is arriving.</string>
    </array>
    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <array>
        <string>App would like to use location to track the exact location of the vehicle in real time. Also notify our warehouses when the driver is arriving</string>
    </array>

0 个答案:

没有答案