R1'*_*R1' 8 device ios react-native
我尝试在ios真实设备上运行react-native应用程序。它在模拟器或使用 xcode 的设备上运行良好,但我想使用命令行运行我尝试了以下操作:
>npm install -g ios-deploy
>react-native run-ios --device "My iPhone"
Run Code Online (Sandbox Code Playgroud)
这就是我得到的:
info Found Xcode workspace "Project.xcworkspace"
info Building (using "xcodebuild -workspace Project.xcworkspace -configuration Debug -scheme Project -destination id=00008020-0001395426EA002E")
......................................................................
2020-04-06 11:15:02.836 xcodebuild[16724:402803] DTDeviceKit: deviceType from 00008020-0001395426EA002E was NULL
2020-04-06 11:15:02.967 xcodebuild[16724:402797] DTDeviceKit: deviceType from 00008020-0001395426EA002E was NULL
info Installing and launching your app on My iPhone
Run Code Online (Sandbox Code Playgroud)
该应用程序出现在我的 iPhone 中,但未运行。
地铁在新航站楼开通,但我只得到这个:
###### ######
### #### #### ###
## ### ### ##
## #### ##
## #### ##
## ## ## ##
## ### ### ##
## ######################## ##
###### ### ### ######
### ## ## ## ## ###
### ## ### #### ### ## ###
## #### ######## #### ##
## ### ########## ### ##
## #### ######## #### ##
### ## ### #### ### ## ###
### ## ## ## ## ###
###### ### ### ######
## ######################## ##
## ### ### ##
## ## ## ##
## #### ##
## #### ##
## ### ### ##
### #### #### ###
###### ######
Welcome to React Native!
Learn once, write anywhere
To reload the app press "r"
To open developer menu press "d"
Run Code Online (Sandbox Code Playgroud)
我没有得到使用 XCode 构建时显示的进度条。
编辑
对于日志:
user@MBP Project % react-native log-ios
error No active iOS device found
Run Code Online (Sandbox Code Playgroud)
安装的版本:
user@MBP Project % react-native -v
react-native-cli: 2.0.1
react-native: 0.62.0
Run Code Online (Sandbox Code Playgroud)
小智 -4
enter code here in terminal\nRun Code Online (Sandbox Code Playgroud)\nreact-native run-ios --simulator=\xe2\x80\x9diPhone 11 Pro Max\xe2\x80\x9d\nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
7665 次 |
| 最近记录: |