美文网首页
Flutter iOS真机调试报错

Flutter iOS真机调试报错

作者: 伊路顺峰 | 来源:发表于2021-03-12 11:13 被阅读0次

    苹果手机升级到iOS14以后,直接在Flutter上真机调试开始报错
    Your Xcode version may be too old for your iOS version.
    ═══════════════════════════════════════════════════════════════════════════════════
    2021-03-12 11:05:05.087 ios-deploy[17725:198226] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, CFSTR("com.apple.debugserver"), NULL, &con)
    Could not run build/ios/iphoneos/Runner.app on 00008101-0011250C2E40001E.
    Try launching Xcode and selecting "Product > Run" to fix the problem:
    open ios/Runner.xcworkspace

    Error launching application on iPhone12wf.

    这是因为Flutter包内没有针对新版iOS做适配,我们只需要替换一下ios-deploy
    解决方案网上都有链接

    我这里粘贴一下方法:

    https://github.com/ios-control/ios-deploy/releases/tag/1.11.2-beta.1下载解压运行ios-deploy,运行成功后在Products下找到ios-deploy。替换之前flutter中的ios-deploy。
    flutter路径是:fultter根路径+/bin/cache/artifacts/ios-deploy/ios-deploy

    相关文章

      网友评论

          本文标题:Flutter iOS真机调试报错

          本文链接:https://www.haomeiwen.com/subject/uutzqltx.html