命令:
yarn ios --device '你的设备名称'
设备名称可以打开XCode查看
这个过程中你可能遇到如下错误:
没有安装 ios-deploy
error Failed to install the app on the device because we couldn't execute the "ios-deploy" command. Please install it by running "npm install -g ios-deploy" and try again.
执行下方安装:
sudo npm install -g ios-deploy
使用XCode打开你的RN ios目录,首先包名也就是 Bundle Identifier可能会有冲突,要改成一个带有自己名字唯一的就行,
Signing Certificate 你需要登录自己的APPID账号
安装成功后在手机中需要在通用中点击描述文件,信任刚刚安装的app。