0
0

【fastlaneエラー解消】[!] Your current version () does not respect the format A or A.B or A.B.C

Last updated at Posted at 2024-08-20

解決方法

info.plistにCFBundleShortVersionStringとCFBundleVersionを追加する。

info.plistをコードで開く

スクリーンショット 2024-08-20 8.56.41.png

CFBundleShortVersionStringとCFBundleVersionを追加

<?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>CFBundleShortVersionString</key>
    <string>1.0.0</string>
    <key>CFBundleVersion</key>
    <string>1</string>
<!--ここまで追加-->
    <key>UIApplicationSceneManifest</key>
    <dict>
        <key>UIApplicationSupportsMultipleScenes</key>
        <false/>
        <key>UISceneConfigurations</key>
        <dict>
            <key>UIWindowSceneSessionRoleApplication</key>
            <array>
                <dict>
                    <key>UISceneConfigurationName</key>
                    <string>Default Configuration</string>
                    <key>UISceneDelegateClassName</key>
                    <string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
                </dict>
            </array>
        </dict>
    </dict>
</dict>
</plist>

これでタイトルのエラー解消できました。

1. CFBundleShortVersionString

  • : 1.0.0
  • 説明: これは、アプリのマーケティングバージョン、つまり一般ユーザーに公開されるバージョン番号です。ユーザーがApp Storeで見るバージョン番号で、通常「1.0.0」形式で表現されます。この値は、アプリの機能やリリースを示すものとして使われます。

2. CFBundleVersion

  • : 1
  • 説明: これは、アプリのビルド番号を表します。CFBundleVersionは、アプリの内部バージョン管理に使われるもので、通常は開発者やビルドシステムが使用します。毎回のビルドでインクリメントされることが一般的です。この番号は、同じマーケティングバージョンでも複数のビルドが存在する場合に、ビルドごとに異なるものとして管理されます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0