如何强制Flutter更新我的版本和内部版本号?

托马斯·巴兰(Tomas Baran)
  1. 我已将pubspec.yaml中的版本更改为1.0.1 + 1(从1.0.0 + 3)
  2. flutter clean
  3. flutter build ios
  4. 当我打开[project] /ios/Runner.xcworkspace时,它仍然显示1.0.0版本。

我究竟做错了什么?如何强制Xcode从CLI或pubspec.yaml更新我的版本?

这是我的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>CFBundleDevelopmentRegion</key>
    <string>$(DEVELOPMENT_LANGUAGE)</string>
    <key>CFBundleDisplayName</key>
    <string>Name</string>
    <key>CFBundleExecutable</key>
    <string>$(EXECUTABLE_NAME)</string>
    <key>CFBundleIdentifier</key>
    <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>Sundee</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>$(MARKETING_VERSION)</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>$(CURRENT_PROJECT_VERSION)</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <string>Your location will be used to determine sun angle.</string>
    <key>NSLocationAlwaysUsageDescription</key>
    <string>Your location will be used to determine sun angle.</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>Your location will be used to determine sun angle.</string>
    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
    <key>UIMainStoryboardFile</key>
    <string>Main</string>
    <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>UIViewControllerBasedStatusBarAppearance</key>
    <false/>
</dict>
</plist>
托马斯·巴兰(Tomas Baran)

我知道了。这是因为我在Info.plist中的行看起来不是这样:

<key>CFBundleShortVersionString</key> <string>$(FLUTTER_BUILD_NAME)</string> <key>CFBundleVersion</key> <string>$(FLUTTER_BUILD_NUMBER)</string>

有人知道我为什么要$(MARKETING_VERSION)$(CURRENT_PROJECT_VERSION)吗?

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

使用当前和所需的内部版本号执行应用程序强制更新

如何设置Flutter应用程序的内部版本和版本号

如何获取Flutter Web应用程序的内部版本和版本号

如何获取Flutter应用程序的内部版本和版本号

如何让TeamCity更新指定文件中的内部版本号?

AssemblyInfo内部版本号未更新

为 Flutter 应用维护不同的版本和内部版本号

如何在 Azure Pipelines 中自动递增 Xamarin Android 内部版本号和版本号?

我如何找到openpyxl版本号

如何在NPM版本中表示内部版本号?

如何自动设置Watchkit应用目标的版本和内部版本号

如何使用Swift获取App版本和内部版本号?

如何在xcode> = 12.3中更改版本和内部版本号

我如何使用Jenkins和Pipeline Multibranch插件在分支机构之间拥有唯一的内部版本号

我的debian版本号

如何更改Android版本和代码版本号?

Jenkins内部版本号更改为数据和时间

Spring Boot和Maven内部版本号插件

Windows内部版本号和与KB编号的关联

如何在 Android 中获取 Jenkins 内部版本号?

如何从执行重建的位置获取内部版本号?

AOSP内部版本号如何自定义?

如何使用Maven获取Jenkins内部版本号

如何在Teamcity中设置内部版本号?

如何更改当前的内部版本号?

如何列出所有Flutter软件包和版本号

我应该如何/何时更新版本号?

如何更新React Native应用的版本号

何时/如何更新Firebase Web SDK版本号?