创建证书
请看https://www.jianshu.com/p/2e6acda98b65
创建要调试的设备
获取要真机调试的设备UUID
插入设备到mac,finder里面看uuid,右键把uuid复制下来,待会要用

创建一个真机设备,我用的ipad,填上刚才准备的设备uuid

创建配置性文件 Provisioning Profiles
一个Provisioning Profile中包含了Certificate,App ID,以及Device等信息


选择一个app id(com.xx.xx)

选择真机运行设备




xcode验证是否成功

这样表示成功
flutter真机
flutter run
#或者
flutter run --release

ps:debug模式,一旦断开于mac的连接,app就不能运行了。
如果要独立运行,请用release
网友评论