gpt4 book ai didi

android-studio - 当我运行 flutter 构建 IOS 卡在进程中间

转载 作者:行者123 更新时间:2023-12-03 17:04:48 29 4
gpt4 key购买 nike

每当我运行 flutter build IOS 时,它似乎工作正常,但是当它到达“构建 Dart 代码”的时候,它就会永远卡在那里。然而,在此之前我能够成功运行 flutter build apk。

这是 flutter 医生 -v 的输出:

[✓] Flutter (Channel beta, v0.11.3, on Mac OS X 10.13.6 17G65, locale en-GB)
• Flutter version 0.11.3 at /Users/../flutter
• Framework revision 72bf075e8d (4 days ago), 2018-11-09 20:36:17 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/../Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/bin/java
• Java version Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.0, Build version 10A255
• ios-deploy 1.9.2
• CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] Android Studio
• Android Studio at /Applications/Android/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
✗ Android Studio not found at /Applications/Android/Contents
• Try updating or re-installing Android Studio.

[✓] VS Code (version 1.24.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.20.0

[✓] Connected device (1 available)
• .. iPhone • 77afb908fc6c490d3fca62cdde9a74ab4e45b4f0 • ios • iOS 11.4.1

! Doctor found issues in 1 category.

我还将发布卡在哪里:

-MacBook-Pro:flutterLoginApp-master4OK ..$ flutter build ios
为设备构建登录(ios-release)...在 Xcode 项目中使用指定的开发团队自动签署 iOS 以进行设备部署:...
开始 Xcode 构建... ├─构建 Dart 代码... 1.6s//然后永远卡在这里 ...

最佳答案

当前的 beta 版本 (0.11.3) 无法运行,并且在 ios 上构建发布版本时卡住了。目前的修复方法是在 beta 版本卡住时降级您的 flutter 版本或更改为 master 分支。

您可以使用 flutter channel master 然后在终端上使用 flutter upgrade 来做到这一点。

关于android-studio - 当我运行 flutter 构建 IOS 卡在进程中间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53303936/

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