iPhone XS not being recognized properly in Android Studio for Flutter App

雨燕双飞 提交于 2019-12-12 18:24:02

问题


I just received an iPhone XS for development, and I'm running into an issue using it to run my Flutter App in Android Studio.

When I plug in my old iPhone 6s, Android Studio shows this, just the normal name of the iPhone.

But when I plug my XS in, it shows this, a huge string that looks like it's showing the command line tools for ideviceinfo. This is also causes an error when trying to install the app:

Installing and launching...
error: module importing failed: ('invalid syntax', ('temp.py', 1, 27, 'import fruitstrap_00008020-001C50503488002E\n'))
backtrace unavailable

Oddly enough, I can still run the app in Xcode. So I'm assuming this is an Android Studio bug that hasn't been worked out yet. Anyone run into anything like this?


回答1:


The new iPhones use a new UDID format which libimobiledevice doesn't support yet. The tools crash and that causes the output you see.

You'll need to wait for a new version of libimobiledevice to become available which supports the new UDID format.

Some folks have submitted a PR but it hasn't been merged yet.



来源:https://stackoverflow.com/questions/52450071/iphone-xs-not-being-recognized-properly-in-android-studio-for-flutter-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!