【发布时间】:2017-01-18 18:05:35
【问题描述】:
我在运行run-ios 命令时遇到了问题。在此之前,该应用程序启动良好,但现在我什至在应用程序完成捆绑之前就进入了这个屏幕。
以下是我调试问题的一些步骤:
- 在启动时使用
npm start --reset-cache重置缓存 - 清除了守望者配置
- 启用远程调试以暂停捕获的异常*
- 为之前的提交创建了一个新分支,我知道该提交在此问题之前有效(无解决)
- 删除并重新安装了我的
node_modules文件夹 - 通过自制软件删除并重新安装了守望者
- 已清除 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
【问题讨论】:
标签: ios react-native referenceerror