编译Swift源文件失败

发布于 2025-02-06 19:38:13 字数 630 浏览 0 评论 0原文

我目前正在尝试通过Xcode 13.4.1运行一个0.61版本的本机项目到iPhone11模拟器。 但是构建失败,当编译Swift源文件时,预编译桥接标头。 请查看下面的错误日志。

PrecompileSwiftBridgingHeader normal arm64...
...App-Bridging-Header.pch
Debug-iphonesimulator/Charts/Charts.modulemap' not found
Charts/Charts.modulemap' not found
RNCharts.modulemap' not found
SwiftyJSON.modulemap' not found

根据

这是有趣的事情,但在终端中执行react-native-nive-in-code,应用程序可以在模拟器上成功启动,以空白屏幕显示。至少取得成功,没有错误。这么奇怪的事情!

I am currently trying to run a 0.61 version React Native project to iPhone11 simulator through Xcode 13.4.1 .
But Build failed, when Compile Swift source files, Precompile Bridging Header.
Please have a look at error log as below.

PrecompileSwiftBridgingHeader normal arm64...
...App-Bridging-Header.pch
Debug-iphonesimulator/Charts/Charts.modulemap' not found
Charts/Charts.modulemap' not found
RNCharts.modulemap' not found
SwiftyJSON.modulemap' not found

According to the suggestion of https://stackoverflow.com/a/50080796/7284349.
I tried delete bridging header path from the Build setting > Swift Compiler - General > Objective c bridging header. But no work.

enter image description here

while here's the interesting thing, execute react-native run-ios in the terminal, app can launch successfully on simulator, shown as a blank screen. At least build success, no errors. Such a strange thing!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文