编译Swift源文件失败
我目前正在尝试通过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.
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论