Flutter开发:一个关于xcode链接真机报错的问题

出现如下错误信息:

Failed to prepare device for development.Please unlock and reconnect the device.

解决方法:

1.生成开发者证书并下载:https://developer.apple.com/account/resources/profiles/list 2.用数据线连接iPhone和mac 3.打开xcode,选择Xcode -> Windows->Devices and Simulators 4.选择手机 → Show Provisioning Profiles...如图:

5.添加之前生成的证书

6.重新插拔手机数据线,查看设置中是否出现开发者选项,如果出现即成功

参考文章:https://www.jianshu.com/p/a1d075b3472c

xcode·flutter
232 views
Comments
登录后评论
Sign In