Giter Site home page Giter Site logo

Comments (4)

duheng avatar duheng commented on May 10, 2024

如果是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

from mozi.

duheng avatar duheng commented on May 10, 2024

如果是 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

from mozi.

duheng avatar duheng commented on May 10, 2024

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

from mozi.

wenxiayili avatar wenxiayili commented on May 10, 2024

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

我这边解决了,THK!

from mozi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.