gpt4 book ai didi

IOS 上的 Flutter 版本停留在 1.0.0

转载 作者:行者123 更新时间:2023-12-04 13:57:54 25 4
gpt4 key购买 nike

当我运行时:

pod outdated

在 IOS 上确定任何过时的 pod,我得到以下结果:
.... 

Analyzing dependencies
The color indicates what happens when you run `pod update`
<green> - Will be updated to the newest version
<blue> - Will be updated, but not to the newest version because of specified version in Podfile
<red> - Will not be updated because of specified version in Podfile

The following pod updates are available:
- Flutter 1.0.0 -> 1.0.0 (latest version 1.3.300)
- Protobuf 3.9.2 -> 3.9.2 (latest version 3.10.0-rc1)

虽然目前 IOS 上的 Flutter 1.0.0 版(红色)似乎还可以,但有人可以建议我如何更新这个 Pod?

我已经使用以下方法升级了 Flutter:
/Users/bob/Downloads/flutter/bin/flutter upgrade

上面的命令似乎与上面提到的 pod 版本没有区别。我希望所有内容都是最新版本,但如果没有必要知道这些信息也会有所帮助。

使用:
/Users/bob/Downloads/flutter/bin/flutter doctor -v

显示:
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G95, locale en-US)
• Flutter version 1.9.1+hotfix.2 at /Users/bob/Downloads/flutter
• Framework revision 2d2a1ffec9 (3 weeks ago), 2019-09-06 18:39:49 -0700
• Engine revision b863200c37
• Dart version 2.5.0


[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/bob/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.0, Build version 11A420a
• CocoaPods version 1.6.0

[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] Connected device (1 available)
• iPhone 11 Pro Max • 08EB7508-34DE-4797-8F33-3DEE671742E4 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-0 (simulator)

• No issues found!

最佳答案

我现在正在测试这个,但如果你导航到 app_project/ios/Flutter/Flutter.podspec你会看到 Flutter 版本硬编码为 1.0.0

现在我不是 Flutter 的专家,所以我不知道您是否应该手动更改它,您应该将其更改为哪个版本,如果它甚至有任何区别以及为什么在执行 flutter upgrade 时 flutter 不提供脚本还更新此文件和 flutter 版本。

关于IOS 上的 Flutter 版本停留在 1.0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58086615/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com