相关疑难解决方法(0)

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

如何设置Flutter应用程序的版本名称和版本代码,而无需进入Android和iOS设置?

在我的pubspec.yaml中

version: 2.0.0
Run Code Online (Sandbox Code Playgroud)

但我看不到内部编号的地方。

version flutter

7
推荐指数
5
解决办法
6731
查看次数

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

  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> …
Run Code Online (Sandbox Code Playgroud)

deployment xcode command-line-interface flutter

5
推荐指数
2
解决办法
2541
查看次数