Xcode 找不到 .h 文件 "ABC.h file not found"

Xcode can't find .h file "ABC.h file not found"

React-native 项目运行良好。我 运行 npm install react-native-animatable --save 然后从控制台 运行 react-native run-ios 时构建失败。失败 exit code 65。所以我删除了 ios/build 文件夹。

在 Xcode 中打开了项目,清理了项目,清理了构建文件夹,然后重建了项目。

构建失败,因为在 AppDelegate.m 文件

中找不到 "SplashScreen.h" 文件

我几乎尝试了这里的所有答案:.h file not found

~清理项目和构建文件夹

~ 删除并重新添加 ABC.m 文件到 Build Phases -> Compile sources(即使 .m 文件不存在)

~ 检查了 SplashScreen.h 和 SplashScreen.m 的循环导入,否定

~ 将 SplashScreen.h 和整个项目的位置设置从 "Relative to Group" 更改为 "Relative to Project"

~ Quitting/Retarting 地铁捆绑器和 Xcode

~重启电脑

~ 打开 SplashScreen.m 和 unchecked/checked 右侧面板(实用程序)中的目标会员按钮

~ 在旧版本中运行

~重新运行react-native link react-native-splash-screen

不知道为什么突然找不到这个启动画面文件了。一切都很好,我希望我的应用程序能够构建

解决方案:

SplashScreen 库中的某些内容必须已更改。尽管我从未编辑过任何东西,但 AppDelegate.m 文件正在寻找 #import SplashScreen.h,并且 SplashScreen.h 不知何故被更改为 RNSplashScreen.h。我有最高的改变,以及 [SplashScreen show] -> [RNSplashScreen show]