在电脑端运行flutter run后,报错信息如下:
$ flutter run
Launching lib/main.dart on yuan的 iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 9D2Q3H854T
Running Xcode build...
└─Compiling, linking and signing... 4.4s
Xcode build done. 8.4s
═══════════════════════════════════════════════════════════════════════════════════
Error launching app. Try launching from within Xcode via:
open ios/Runner.xcworkspace
Your Xcode version may be too old for your iOS version.
═══════════════════════════════════════════════════════════════════════════════════
2020-09-11 12:30:59.127 ios-deploy[12837:11795496] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, CFSTR("com.apple.debugserver"), NULL, &con)
Could not run build/ios/iphoneos/Runner.app on df53e98d7a4e67be1b8dd80d54dd3ac4fd8077c0.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace
Installing and launching... 7.0s
Error launching application on yuan的 iPhone.
此时由于app已经安装到iphone上,所以尝试从手机直接打开app,报错如下:
如果遇到该情况,只需要在iphone的【通用-设备管理】中信任开发者信息即可,如下:
End~