Can’t build Flutter application: Unable to locate DeviceSupport directory解决

错误

分析:DeviceSupport版本支持不兼容,需要更新对应的DeviceSupport。

解决方法

Xcode iPhoneOS DeviceSupport

支持库:https://github.com/filsv/iPhoneOSDeviceSupport

  1. 下载您需要上面列出的版本;
  2. 解压;
  3. 关闭 Xcode;
  4. 通过路径复制和粘贴解压缩文件夹:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
  5. 重启 Xcode;
Can't build Flutter application: Unable to locate DeviceSupport directory解决