尝试:
xcrun simctl
Run Code Online (Sandbox Code Playgroud)
在terminal收益率:
xcrun:错误:无法找到实用程序"simctl",无法找到开发人员工具或PATH
我有Xcode 6.2 Beta.
有什么建议?
我今天升级到Xcode 10.2,因为升级无法react-native run-ios通过cli 运行:
react-native run-ios --simulator="iPhone X"
Found Xcode workspace a.xcworkspace
Could not find iPhone X simulator
Error: Could not find iPhone X simulator
at resolve (/Users/user/Documents/work/a/a-light-ui/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13)
at new Promise (<anonymous>)
at runOnSimulator (/Users/user/Documents/work/a/a-light-ui/node_modules/react-native/local-cli/runIOS/runIOS.js:134:10)
at Object.runIOS [as func] (/Users/user/Documents/work/a/a-light-ui/node_modules/react-native/local-cli/runIOS/runIOS.js:106:12)
at Promise.resolve.then (/Users/user/Documents/work/a/a-light-ui/node_modules/react-native/local-cli/cliEntry.js:117:22)
Run Code Online (Sandbox Code Playgroud)
如果我运行xcrun simctl list devices所有模拟器,则显示(Shutdown) (unavailable, runtime profile not found):
iPhone X (7AADFA50-7B57-4A40-8434-9A86F345D7ED) (Shutdown) (unavailable, runtime profile not found)
Run Code Online (Sandbox Code Playgroud)
自从将xcode升级到10.2以来,还有其他人遇到过RN的问题吗?它仍然可以通过Xcode ..起作用,但这意味着打开Xcode。
我一直面临着一个问题,即无论我添加到--simulator参数中的模拟器如何,“ react-native run-ios”都无法启动。XCode具有“命令行工具”的正确位置
我总是遇到错误:找不到iPhone X模拟器
Error: Could not find iPhone X simulator
at resolve (/Users/eric/.../swim/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13)
at new Promise (<anonymous>)
at runOnSimulator (/Users/eric/.../swim/node_modules/react-native/local-cli/runIOS/runIOS.js:134:10)
at Object.runIOS [as func] (/Users/eric/.../swim/node_modules/react-native/local-cli/runIOS/runIOS.js:106:12)
at Promise.resolve.then (/Users/eric/.../swim/node_modules/react-native/local-cli/cliEntry.js:117:22)
Run Code Online (Sandbox Code Playgroud)
反应性信息
> React Native Environment Info:
> System:
> OS: macOS 10.14.2
> CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
> Memory: 6.76 GB / 32.00 GB
> Shell: 3.2.57 - /bin/bash
> Binaries:
> Node: 10.15.0 - /usr/local/bin/node
> Yarn: 1.13.0 - /usr/local/bin/yarn
> npm: 6.4.1 - …Run Code Online (Sandbox Code Playgroud) Can not run my project with iOS simulator
ISSUE,
Could not find iPhone 6(or X or any other) simulator
XCODE: 10.2
react-native: 0.52
react: ^16.0.0-alpha.12
Run Code Online (Sandbox Code Playgroud)
Here is my findMatchingSimulator.js from nodemodules/react-native/local-cli/runIOS:
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS …