2017-11-17 24 views
1

私はGet Startedチュートリアルに従っています。フラッターアプリを実行しようとしているときに「ロックダウンに接続できませんでした」

私はすべて、flutter doctorリターンすべてのチェックマークをインストールすることができますが、最後にメッセージがある:私は使用してデバイスを一覧表示しようとする場合、私はflutter runを使用してアプリケーションを実行しようとした場合、または

idevice_id returned an error:
ERROR: Could not connect to lockdownd, error code -2

同じメッセージが表示されますが、 flutter devices

Note: If the Run & Debug buttons are disabled, and no targets are listed, Flutter has not been able to discover any connected iOS or Android devices or simulators. You need to connect a device, or start a simulator, to proceed

が、私は私のAndroid携帯電話とiPhoneシミュレータを2つのデバイスリストされています:

チュートリアルでは、と述べています。 RunDebugボタンが有効になっています!

フラッターを使用してアプリを実行するにはどうすればよいですか?コマンドラインまたはIntelliJ IDEを使用することができます。

答えて

0

私は同様の問題を抱えていて、以下の方法で解決しました。うまくいけば、これはあなたを助けるでしょう。 flutter doctorは答えを教えてくれましたが、少し埋まっていました。

[-] iOS toolchain - develop for iOS devices (Xcode 8.3.3) 
    • Xcode at /Applications/Xcode.app/Contents/Developer 
    • Xcode 8.3.3, Build version 8E3004b 
    ✗ libimobiledevice and ideviceinstaller are not installed or require updating. To update, run: 
     brew uninstall --ignore-dependencies libimobiledevice 
     brew install --HEAD libimobiledevice 
     brew install ideviceinstaller 
    • ios-deploy 1.9.1 
    ✗ ios-deploy out of date (1.9.2 is required). To upgrade: 
     brew upgrade ios-deploy 
    • CocoaPods version 1.2.0 

実行するコマンドは4つあります。brewがあります。私がそれらをしたとき、この問題は私のために消えました。がんばろう!その後、すべてのiOSデバイス

+0

私は質問で述べたように、私はすべてを取得します'フラッタードクター'からのチェックマーク – GabrielOshiro

+0

「すべてのチェックマーク」の意味がわからなかった –

+0

心配なし!ご回答有難うございます! – GabrielOshiro

0

外し、:プロンプトが表示されたら

brew uninstall ideviceinstaller 
brew uninstall libimobiledevice 
brew install --HEAD libimobiledevice 
brew link --overwrite libimobiledevice 
brew install --HEAD ideviceinstaller 
brew link --overwrite ideviceinstaller 
sudo rm -rf /var/db/lockdown/* 

その後、 "信頼" をiOSデバイスを接続し、選択します。

sudo chmod -R 777 /var/db/lockdown/ 
関連する問題