Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

升级Xcode 10.2之后无法使用react-native run-ios Could not find iPhone X simulator #23

Open
duheng opened this issue May 7, 2019 · 4 comments

Comments

@duheng
Copy link
Owner

duheng commented May 7, 2019

解决方案在这里:https://blog.csdn.net/guokaigdg/article/details/89020178

@duheng
Copy link
Owner Author

duheng commented Aug 5, 2019

如果是43行错误请按照此操作修改:

一:执行 open /node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js
二:替换 if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {
为 if (!version.includes('iOS') && !version.includes('tvOS')) {
三:重新执行yarn run ios

@duheng
Copy link
Owner Author

duheng commented Sep 26, 2019

如果是 149行错误请按照此操作修改 node_modules/react-native/local-cli/runIOS/runIOS.js:149:13

一:执行 open /node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js
二:替换 if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {

if (
!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS') &&
!version.startsWith('com.apple.CoreSimulator.SimRuntime.tvOS')
) {

三:全局搜索 simulator.isAvailable !== 'YES' 替换为 simulator.isAvailable !== true
四:重新执行yarn run ios

@duheng
Copy link
Owner Author

duheng commented Oct 9, 2019

此类问题都是由于xcode的版本升级造成的,每个版本报的错不一样,所以遇到这类问题这几个方法都试试,实在解决不了就用xcode启动

@duheng duheng mentioned this issue Oct 18, 2019
@wenxiayili
Copy link

此类问题都是由于xcode的版本升级造成的,每个版本报的错不一样,所以遇到这类问题这几个方法都试试,实在解决不了就用xcode启动

我这边解决了,THK!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants