美文网首页
Flutter:“idevicesyslog” cannot b

Flutter:“idevicesyslog” cannot b

作者: 悟饭哪 | 来源:发表于2020-11-04 16:30 被阅读0次

    第一次启动flutter项目时,报了两个错:
    “idevicesyslog” cannot be opened because the developer cannot be verified.

    idevicesyslog_error
    "iproxy" cannot be opened because the developer cannot be verified.
    iproxy_error

    解决办法:

    在终端运行以下命令即可:

    # idevicesyslog
    sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/artifacts/libimobiledevice/idevicesyslog"
    # iproxy
    sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/artifacts/usbmuxd/iproxy"
    

    执行完之后,重新运行项目就可以了。

    Note:

    如果还不行,请重启电脑。

    其他

    如果报了这两个之外的错误,可尝试以下命令:

    # Dart
    sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/dart-sdk/bin/dart"
    # idevice_id
    sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/artifacts/libimobiledevice/idevice_id"
    # ideviceinfo
    sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/artifacts/libimobiledevice/ideviceinfo"
    # idevicename
    sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/artifacts/libimobiledevice/idevicename"
    # idevicescreenshot
    sudo xattr -d com.apple.quarantine "Flutter_Path/bin/cache/artifacts/libimobiledevice/idevicescreenshot"
    
    

    如果还解决不了,请参考这个博客How to fix flutter “idevice_id” cannot be opened error in Mac OSX Catalina

    Have fun!

    相关文章

      网友评论

          本文标题:Flutter:“idevicesyslog” cannot b

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