相关疑难解决方法(0)

xcrun无法找到simctl

尝试:

xcrun simctl 
Run Code Online (Sandbox Code Playgroud)

在terminal收益率:

xcrun:错误:无法找到实用程序"simctl",无法找到开发人员工具或PATH

我有Xcode 6.2 Beta.

有什么建议?

xcode ios xcrun

127
推荐指数
8
解决办法
5万
查看次数

由于升级到Xcode 10.2,我无法再通过cli运行react-native run-ios

我今天升级到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。

xcode ios react-native react-native-cli

15
推荐指数
1
解决办法
4880
查看次数

react-native run-ios无法找到任何模拟器

我一直面临着一个问题,即无论我添加到--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)

ios ios-simulator react-native

12
推荐指数
4
解决办法
7494
查看次数

Could not find iPhone 6(or any other) simulator React-Native, nothing helps?

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 …

xcode simulator react-native

0
推荐指数
1
解决办法
1813
查看次数