gpt4 book ai didi

ios - react 原生 : run-ios has stopped working (ReferenceError)

转载 作者:行者123 更新时间:2023-12-01 19:57:20 25 4
gpt4 key购买 nike

我在运行 run-ios 时遇到了问题命令。在此之前,该应用程序启动良好,但现在我什至在应用程序完成捆绑之前就进入了这个屏幕。

这是我得到的屏幕的链接:https://d17oy1vhnax1f7.cloudfront.net/items/1J3n3u1z3w2k2E160V1B/Screen%20Shot%202017-01-18%20at%2010.36.08%20AM.png?v=783d1021

以下是我调试问题的一些步骤:

  • 使用 npm start --reset-cache 在启动时重置缓存
  • 清除守望者配置
  • 启用远程调试以暂停捕获的异常*
  • 为之前的提交创建了一个新分支,我知道在此问题之前已经工作过(无解决)
  • 删除并重新安装了我的 node_modules文件夹
  • 通过自制软件删除并重新安装了 watchman
  • 已清除 npm 缓存
  • 将 react-native 升级到 0.40.0

  • *这是在 chrome 中检查时出现错误的行:
    global = DedicatedWorkerGlobalScope {console: Object, __fbBatchedBridgeConfig: Object, __DEV_

    我在许多问题上尝试了许多解决方案,但未能提出正确的解决方案。

    以下是一些可能相关的信息:
    run-ios启动日志:
    Found Xcode project TipHiveMobile.xcodeproj
    Launching iPhone 6 (iOS 10.2)...
    Building using "xcodebuild -project TipHiveMobile.xcodeproj - configuration Debug -scheme TipHiveMobile -destination id=DDBF9D1C-CB3F- 4FCF-B9B6-C7AF372B7F3E -derivedDataPath build"
    User defaults from command line:

    IDEDerivedDataPathOverride = /Users/tylerreckart/Code/tiphive/TipHiveMobile/ios/build


    === BUILD TARGET RNVectorIcons OF PROJECT RNVectorIcons WITH CONFIGURATION Debug ===
    log-ios重载时输出
    Jan 18 10:45:05 Nosferatu logd[30752] <Notice>: metadata shared cached  uuid is null (using logd's shared cache info) nsurlstoraged (39014)

    Jan 18 10:45:05 Nosferatu logd[30752] <Notice>: Failed to harvest strings for pathless uuid '00000000-0000-0000-0000-000000000000'

    Jan 18 10:45:15 Nosferatu TipHiveMobile[31100] <Notice>: Initializing <RCTBatchedBridge: 0x608000199300> (parent: <RCTBridge: 0x6000000a28e0>, executor: RCTWebSocketExecutor)

    Jan 18 10:45:15 Nosferatu TipHiveMobile[31100] <Warning>: Required dispatch_sync to load constants for RCTSourceCode. This may lead to deadlocks

    Jan 18 10:50:33 Nosferatu routined[30747] <Error>: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104
  • React Native 版本:0.39.0
  • 平台:iOS
  • 操作系统:MacOS
  • 最佳答案

    当您无法运行 react-native 应用程序时,似乎我们有类似的事情 list 。

    我会尝试的另一件事:

  • 在分支中提交更改以确保不会丢失更改
  • 删除整个文件夹:rm -rf
  • 再次克隆它: git clone
  • 重新安装运行:npm install && react-native run-ios ...

  • 这是我尝试的最后一件事,但过去它确实对我有用。

    关于ios - react 原生 : run-ios has stopped working (ReferenceError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41726430/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com