美文网首页
Mac下Flutter环境配置问题

Mac下Flutter环境配置问题

作者: JillZsy | 来源:发表于2019-03-21 11:54 被阅读0次

    附上Flutter中文文档,文档还是很全面的。

    iOS真机环境:The brew link step did not complete successfully

    1、bin/2to3

    $ brew install --HEAD libimobiledevice
    //
    ==> Pouring python-3.7.2_2.mojave.bottle.tar.gz
    Error: The `brew link` step did not complete successfully
    The formula built, but is not symlinked into /usr/local
    Could not symlink bin/2to3
    Target /usr/local/bin/2to3
    
    already exists. You may want to remove it:
      rm '/usr/local/bin/2to3'
    
    To force the link and overwrite all conflicting files:
      brew link --overwrite python
    
    To list all files that would be deleted:
      brew link --overwrite --dry-run python
    ------------------------------------------------------------------------------------------
    $ rm '/usr/local/bin/2to3' //删除2to3
    $ brew link --overwrite python
    Linking /usr/local/Cellar/python/3.7.2_2... 24 symlinks created
    $ python -V
    Python 2.7.10
    $python3 -V
    Python 3.6.4rc1
    

    通过安装包安装的都会在下面的目录下:
    /Library/Frameworks/Python.framework/Versions/3.6
    通过brew 安装的都会在
    /usr/local/Cellar/python/3.7.2_2

    为什么python版本不是3.7.2?

    2、bin/pod

    $ brew install ideviceinstaller ios-deploy cocoapods
    //
    ==> Pouring cocoapods-1.6.1.mojave.bottle.tar.gz
    Error: The `brew link` step did not complete successfully
    The formula built, but is not symlinked into /usr/local
    Could not symlink bin/pod
    Target /usr/local/bin/pod
    already exists. You may want to remove it:
      rm '/usr/local/bin/pod'
    
    To force the link and overwrite all conflicting files:
      brew link --overwrite cocoapods
    
    To list all files that would be deleted:
      brew link --overwrite --dry-run cocoapods
    ------------------------------------------------------------------------------------------
    $ brew link --overwrite cocoapods
    Linking /usr/local/Cellar/cocoapods/1.6.1... 2 symlinks created
    

    第一次使用vscode,不知道有没有像我一样Flutter: New Project之后找不到输入项目名称的地方。下意识以为会有一个弹框的。。。然而依然在原来输入框中。。。怪我没认真看英文。。。

    相关文章

      网友评论

          本文标题:Mac下Flutter环境配置问题

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