在ios模拟器上运行flutter项目时,出现此错误:-ProcessException:进程超时:

时间:2020-09-18 19:26:08

标签: ios xcode flutter visual-studio-code

当我在ios模拟器上运行项目时,我在Flutter的Visual Studio代码终端中收到此错误消息

Launching lib/main.dart on iPhone 11 in debug mode...
Running Xcode build...                                                  
└─Compiling, linking and signing...                        89.1s
Xcode build done.                                           470.2s
ProcessException: Process timed out:

Command: /usr/bin/env xcrun xcodebuild -configuration Debug -quiet -workspace 
Runner.xcworkspace -scheme Runner
 BUILD_DIR=/Users/sai/FlutterSDK/Projects/Todolist/App/Todolist/build/ios -sdk 
 iphonesimulator -arch x86_64
   SCRIPT_OUTPUT_STREAM_FILE=/var/folders/88/w77bfft52rv76y7f9skrrzk40000gq/T/flutter_tools.6EpPE0/ 
   flutter_build_log_pipe.
   7KmLr9/pipe_to_stdout FLUTTER_SUPPRESS_ANALYTICS=true COMPILER_INDEX_STORE_ENABLE=NO - 
   showBuildSettings

您知道导致此错误的原因是什么.......让我知道...

1 个答案:

答案 0 :(得分:0)

我已经找出导致此问题的原因,当您在一般终端中更新xcode或android studio Avd或任何与flutter一起使用的工具来修复此Use Flutter upgrade并转到Visual Studio代码并如果您遇到任何其他问题,请运行Flutter clean并运行flutter run,让我知道......