简体   繁体   English

'realm/util/features.h' 文件未找到 重新安装 Pod 时偶尔发生。 领域-JS

[英]'realm/util/features.h' file not found Sporadically Occurs when Re-Installing Pods. Realm-JS

Very occasionally the Realm pod (Realm-JS) will actually build and run correctly. Realm pod (Realm-JS) 偶尔会真正构建并正确运行。 The majority of the time in order for it to build without the "file not found" error I have to:大多数情况下,为了在没有“找不到文件”错误的情况下构建它,我必须:

  • Delete derived data and project build folder删除派生数据和项目构建文件夹
  • Clean pod cache $pod cache clean --all清理 pod 缓存 $pod 缓存清理 --all
  • Delete and reinstall yarn删除并重新安装yarn
  • Delete and reinstall pods删除并重新安装 pod
  • Quitting the sim (?)退出 sim (?)

Sometimes I'm going through those steps 5 times before it works.有时我会在它工作之前完成这些步骤 5 次。 Every time I have to reinstall pods it's hours of pain trying to get Realm to build again.每次我必须重新安装 pod 时,试图让 Realm 重新构建都是很痛苦的。

  • Pods version 1.10.0 Pod 版本 1.10.0
  • Realm version 10.2.0 Realm 版本 10.2.0
  • Xcode 12.3 Xcode 12.3
  • React Native 0.63.1反应原生 0.63.1

(Have tried suggestions mentioned on other SO posts and Git.) (尝试过其他 SO 帖子和 Git 中提到的建议。)

This is my current workaround - seems to consistently work.这是我目前的解决方法 - 似乎一直有效。 It can burn 20-30 minutes.它可以燃烧20-30分钟。

Steps to escape the Realm of Hell:逃离地狱Realm的步骤:

  • Delete yarn modules删除纱线模块
  • Delete pods删除 pod
  • Delete derived data删除派生数据
  • $yarn cache clean $纱线缓存清理
  • $pod cache clean --all $pod 缓存清理 --all
  • Erase all contents and settings from the simulator从模拟器中删除所有内容和设置
  • Close the simulator关闭模拟器
  • Clean Xcode build folder清理 Xcode 构建文件夹
  • Close Xcode关闭 Xcode
  • Restart computer重启电脑
  • Flush every toilet in the house冲洗房子里的每个厕所
  • Install yarn modules and pods安装纱线模块和吊舱
  • Wait 4 minutes for Xcode to build+run to the potential Realm failure point等待 4 分钟,让 Xcode 构建+运行到潜在的 Realm 故障点

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM