Your Xcode version may be too old for your iOS version, The service is invalid. AMDeviceSecureSta...

Flutter项目升级iOS14,Xcode12beta之后,项目运行出现问题。ios-deploy[54959:778742] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, CFSTR("com.apple.debugserver"), NULL,
&con)


image.png

一顿Google无果,只能自己分析。
仔细看报错内容,最后一条命令是

--no-wifi --justlaunch --args --enable-dart-profiling --enable-service-port-fallback --disable-service-auth-codes --observatory-port=53451 --enable-checked-mode --verify-entry-points

显而易见,报错的元凶是flutter/bin/cache/artifacts/ios-deploy/ios-deploy,不知道ios-deploy可自行百度,查看当前版本为1.10,下载最新版本,编译后替换Flutter内该文件即可~

Mark一下,google花了太多时间,还是应该冷静的去分析问题 太浮躁了。。

你可能感兴趣的:(Your Xcode version may be too old for your iOS version, The service is invalid. AMDeviceSecureSta...)