美文网首页
AttributeError: ‘NoneType’ objec

AttributeError: ‘NoneType’ objec

作者: asdfeng | 来源:发表于2020-11-17 15:27 被阅读0次

    VSCode运行Flutter iOS项目时报:AttributeError: ‘NoneType’ object has no attribute ‘ConnectRemote’
    这是因为Flutter SDK和Xcode12或iOS14版本不兼容导致的,我们只要替换Flutter目录下的ios-deploy文件就可以了。

    1.下载ios-deploy

    ios-deploy下载地址
    下载下来后使用Xcode运行一下,会看到products目录下包含一个ios-deploy文件

    2. 替换ios-deploy

    找到你Flutter SDK安装目录下的/flutter/bin/cache/artifacts/ios-deploy文件夹,然后替换ios-deploy文件即可

    参考文章

    相关文章

      网友评论

          本文标题:AttributeError: ‘NoneType’ objec

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