我正在尝试在我的 iPhone 中直接运行 react native 应用程序。
命令 react-native run-ios --device "XXXX 设备"
不适合我
得到。
installing and launching your app on ***** iPhone6...
** INSTALLATION SUCCEEDED **
Unable to mount developer disk image, (Error Domain = com.apple.dtdevicekit Code = 601 "Could not locate device supportfiles."
UserInfo = {
DeviceType = iPhone7,
2,
NSLocalizedDescription = Could not locate device support files.,
NSLocalizedRecoverySuggestion = This iPhone 6 is running iOS 11.3(15E216),
which may not be supported by this version of Xcode.
}) {
DeviceType = "iPhone7,2";
NSLocalizedDescription = "Could not locate device support files.";
NSLocalizedRecoverySuggestion = "This iPhone 6 is running iOS 11.3 (15E216), which may not be supported by this version of Xcode."
}
xcodebuild: error: Unable to find a destination matching the provided destination specifier: {
id: 2 dcfa6f3928359203a08971f89513000a776d10f
}
Unsupported device specifier option.
The device“ My Mac” does not support the following options: id
Please supply only supported device specifier options.
Best Answer-推荐答案 strong>
你应该指定simulator 参数,阅读更多Running On Simulator
react-native run-ios --simulator="iPhone X"
关于ios - 如何在不打开 Xcode 的情况下直接响应原生应用程序?,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/49630277/
|