我的Flutter应用程式无法在Android Studio的iPhone装置上执行

时间:2020-10-28 16:18:31

标签: flutter dart

当我从xcode运行应用程序时,它可以正常工作,也是一样 在模拟器中,但是当我从iphone的Android Studio执行运行时 设备,它显示白屏,然后关闭,然后出现 像这样:

Launching lib/main.dart on iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 7R6D66J964
Running Xcode build...
Xcode build failed due to concurrent builds, will retry in 2 seconds.
Xcode build done.                                           44.9s
Installing and launching...
Error launching application on iPhone.

enter image description here

颤抖的医生:

[✓] Flutter (Channel master, 1.24.0-2.0.pre.55, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-JO)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
[✓] Android Studio (version 4.1)
[✓] Connected device (3 available)
    ! Error: iPhone is busy: Copying cache files from device. Xcode will continue when iPhone is finished. (code -10)

• No issues found!

1 个答案:

答案 0 :(得分:0)

打开Xcode 转到Wondow -> 设备和模拟器 你的手机显示在左侧 右键单击并取消配对 没有配对设备,它工作正常