2

概要と plist ファイルにバージョン番号を入力しようとしましたが、それでも同じエラーが発生します。

CFBundleVersion は 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>en</string>
    <key>CFBundleDisplayName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string>
    <key>CFBundleGetInfoString</key>
    <string></string>
    <key>CFBundleIcons</key>
    <dict>
        <key>CFBundlePrimaryIcon</key>
        <dict>
            <key>CFBundleIconFiles</key>
            <array>
                <string>Calmness_icon_ratina.png</string>
                <string>Default.png</string>
                <string>Default@2x.png</string>
                <string>Calmness_icon57.png</string>
            </array>
            <key>UIPrerenderedIcon</key>
            <true/>
        </dict>
    </dict>
    <key>CFBundleIdentifier</key>
    <string>com.jassem.calmness</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6</string>
    <key>CFBundleName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.1</string>
    <key>CFBundleSignature</key>
    <string>BNDL</string>
    <key>CFBundleVersion</key>
    <string>1.0</string>
    <key>LSApplicationCategoryType</key>
    <string></string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>UIBackgroundModes</key>
    <array>
        <string>audio</string>
    </array>
    <key>UIPrerenderedIcon</key>
    <true/>
    <key>UIRequiredDeviceCapabilities</key>
    <array>
        <string>armv7</string>
    </array>
    <key>UIStatusBarHidden</key>
    <true/>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
    </array>
</dict>
</plist>
4

3 に答える 3

0

ほとんどの場合、xcode 自体に問題があります。クリーニング、オーガナイザーでの派生データの削除、Xcode の再起動を試してください。それが機能しない場合は、プロジェクト ペインで確認してください。要約すると、バージョンとビルドの両方が 1.0 であるかどうかを確認してください。

于 2013-01-25T21:43:31.993 に答える
0

何らかの理由で、Xcode は上記のキーを見つけられません。

  • ターゲットのビルド設定で、設定した info.plist のパスを調べます
  • 派生ファイル フォルダーを削除します。古いバージョンのファイルがここにある可能性があります。
  • Finder で plist をダブルクリックすると、正しく開きますか? 誤って破損した可能性があります
  • 新しいプロジェクトを作成し、info.plist を新しいものに置き換えます
于 2013-08-20T20:54:10.753 に答える
0

info.plist に移動し、「アプリケーション カテゴリ」という名前の新しいキーを追加して、設計したカテゴリを選択する必要があります。

于 2017-05-23T16:55:32.277 に答える