我无法在运行于virtual box的catalina上的VSCode中测试我的Flutter应用程序。
从VSCode启动应用程序后,我只得到了一行错误信息 Error launching application on Najam’s iPhone.
然后应用程序在设备上打开,但随后与VSCode断开连接。
Launching lib/main.dart on Najam’s iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: H5PHS46J86
Running pod install... 277.5s
Running Xcode build...
└─Compiling, linking and signing... 114.5s
Xcode build done. 346.8s
Installing and launching... 59.8s
Error launching application on Najam’s iPhone.
我尝试过的方法
像这里https://github.com/flutter/flutter/issues/69632#issuecomment-803646337建议的那样,我尝试了下面的解决方案,但对我不起作用:
- 在Podfile中设置
platform到10.0
(platform :ios, '10.0')- 组合使用
flutter clean
、pod cache clean --all
和pod install
我还尝试了这个解决方案https://stackoverflow.com/a/64661277/7290043。 但它也没有起作用。
flutter clean pod cache clean --all
rm -rf ios/Flutter/Flutter.framework
flutter pub get
pod install
flutter run
我该怎么办?