ReactNative 真机调试[ios]

1.先找到一只iPhone,链接到电脑
2.Xcode 选择链接的那个设备


ReactNative 真机调试[ios]_第1张图片
选设备

这步可能出现iphone is busy什么什么,等进度条跑完

可能的报错:

  • Could not find developer disk image

基本是Xcode跟设备的版本不匹配,升级Xcode升级ios,参考这个文章:
iOS新升级,Xcode运行报错Could not find developer disk image(内含最新开发包)

  • an app id with identifier 'org.reactjs.native.example.myProject' is not available

给这里的名字改一下


ReactNative 真机调试[ios]_第2张图片
Paste_Image.png
  • (null)cannot run arm64
    这个出现了一次,然后又没了..有说

Select project and to go target build settings
Enter the key "Build variants" to search box
and just changed from "armv7" to "normal" or reverse it.

备注下

3.到设备选通用->设备管理->开发者应用 信任一下(:зゝ∠)

你可能感兴趣的:(ReactNative 真机调试[ios])