ProcessException:进程超时:当xode构建完成Flutter应用程序时
Posted
技术标签:
【中文标题】ProcessException:进程超时:当xode构建完成Flutter应用程序时【英文标题】:ProcessException: Process timed out: when xode build Done Flutter app 【发布时间】:2020-09-08 08:52:24 【问题描述】:Xcode 代码编译后flutter run
ProcessException: Process timed out:
Command: /usr/bin/env xcrun xcodebuild -configuration Debug -quiet -workspace
Runner.xcworkspace -scheme Runner
BUILD_DIR=/Users/Huzeifah/Documents/flutter_development/test_app/build/ios
-sdk iphonesimulator -arch x86_64
SCRIPT_OUTPUT_STREAM_FILE=/var/folders/w8/nf0h0vbj01v4qz3wbk07fvnr0000gn/T/flu
tter_build_log_pipe.O5hXp2/pipe_to_stdout FLUTTER_SUPPRESS_ANALYTICS=true
COMPILER_INDEX_STORE_ENABLE=NO -showBuildSettings
运行时的所有版本信息flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.3 19D76, locale en-PK)
[✗] android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from:
https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK
components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup
for detailed instructions).
If the Android SDK has been installed to a custom location, set
ANDROID_SDK_ROOT to that location.
You may also want to add it to your PATH environment variable.
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
[!] Android Studio (not installed)
[✓] VS Code (version 1.45.1)
[✓] Connected device (1 available)
! Doctor found issues in 2 categories.
当我跑步时颤抖。 Xocde 构建完成,然后给出错误 ProceesTimw。然后我尝试所有我能尝试的东西。我安装了 Xcode 11.4.1 的新 vwesion 和 Flutter 新版本 1.17 稳定版enter image description here
【问题讨论】:
flutter 和 Xcode 工具存在问题。该问题仍在审查中。您也可以在 Xcode 中打开 Runner.xworkspace 并在那里构建。对于热重载和重启,您可以安装 Dart 开发工具并在 chrome 上运行调试器。也许这会让你的发展继续下去。 【参考方案1】:对我来说,我遇到了同样的问题,并通过将我的项目移出 iCloud 正在备份的文件夹来解决它。我搬到了一个 wifi 速度较慢的地方,所以我的项目一直悬而未决。现在,它的加载速度比以前更快了。
在此致谢 (iOS simulator not working or taking so much time in Flutter)
【讨论】:
【参考方案2】:这通常发生在您更新 xcode 以在您的常规终端中修复此使用 Flutter upgrade
并转到您的项目代码编辑器并运行 Flutter clean
并运行 flutter run
如果您遇到任何其他问题,请告诉我... ...
【讨论】:
以上是关于ProcessException:进程超时:当xode构建完成Flutter应用程序时的主要内容,如果未能解决你的问题,请参考以下文章
Flutter 测试完成但出现错误:ProcessException: Permission denied