简体   繁体   English

词法或预处理器问题React Native

[英]Lexical or Preprocessor Issue React Native

I'm trying to test my React Native v0.40.0 application on my physical iPhone 6s device. 我正在尝试在我的物理iPhone 6s设备上测试我的React Native v0.40.0应用程序。 I've been having a ton of issues and not sure why. 我遇到了很多问题而且不确定原因。 When building the application, it says it succeeds but shows a fatal error 'cxxreact/JSBundleType.h' file not found under Buildtime errors and the application doesn't get installed onto my phone. 构建应用程序时,它表示它成功但显示在Buildtime错误下找不到致命错误'cxxreact / JSBundleType.h'文件,并且应用程序未安装到我的手机上。 Additionally, I managed to install it once a few days ago, but was having issues making api calls since the call was being made to localhost so I believe the fetch() calls weren't resolving correctly. 另外,我几天前成功安装了一次,但由于调用了localhost,因此在调用api时出现问题所以我认为fetch()调用没有正确解析。 I found this article https://tylermcginnis.com/test-your-react-native-app-on-your-iphone-or-ipad-c632b4beb3ed/ but the AppDelegate.m file is different now so I don't know how to make the modification that everyone is suggesting. 我发现这篇文章https://tylermcginnis.com/test-your-react-native-app-on-your-iphone-or-ipad-c632b4beb3ed/但AppDelegate.m文件现在有所不同所以我不知道如何做出每个人都在暗示的修改。 Any ideas? 有任何想法吗?

我遇到了这个问题,发现答案没有...我希望有一个更好的解决方案,但对我来说有用的是运行react-native upgrade并重置所有内容:/

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

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