iOS 升级了测试版本 电脑不想升级 真机调试 Flutter 应用

原创
07/07 15:07
阅读数 994

iOS升级了开发者版本。这个时候调试 Flutter 会见到下面这段日志。

Launching lib/main.dart on 郭大鹏的iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: BBAXGSNKQ3
Running Xcode build...
Xcode build done.                                           29.1s
Installing and launching...                                     




Installing and launching...                                        13.1s
2020-07-07 14:43:14.160 ios-deploy[28235:306916] [ !! ] Unable to locate DeviceSupport directory with suffix 'DeveloperDiskImage.dmg'. This probably means you don't have Xcode installed, you will need to launch the app manually and logging output will not be shown!
Could not run build/ios/iphoneos/Runner.app on d0801019273b8ab47b043e04519da43b76a32c03.
Try launching Xcode and selecting "Product > Run" to fix the problem:
  open ios/Runner.xcworkspace

Error launching application on 郭大鹏的iPhone.

调试没成功。这个时候不要慌,下载开发者版本的 Xcode 里面有你需要的。

➜  DeviceSupport pwd
/Users/felix/Downloads/Xcode-beta.app/Contents/Developer/platforms/iPhoneOS.platform/DeviceSupport
➜  DeviceSupport sudo cp -R 14.0  /Applications/Xcode.app/Contents/Developer/platforms/iPhoneOS.platform/DeviceSupport
Password:

大概的意思是 Xcode 软件的 Contents/Developer/platforms/iPhoneOS.platform/DeviceSupport 这个目录里面,有各个 iOS 版本对应的文件,复制过去,就可以了。

Launching lib/main.dart on 郭大鹏的iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: BBAXGSNKQ3
Running Xcode build...
Xcode build done.                                           25.5s
Installing and launching...                                        27.4s
Debug service listening on ws://localhost:1024/ws
Syncing files to device 郭大鹏的iPhone...

然后就成功了。

iOS 升级了测试版本 电脑不想升级 真机调试 Flutter 应用

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部