找不到"Objective-C桥接标题"部分 [英] Objective-C Bridging Header section not found
问题描述
我正在使用React Native应用,并且正在尝试使用名为 react-native-socketio 的模块.
I'm working on a React Native app and I'm trying to use a module called react-native-socketio.
为了继续进行该应用程序,我需要在Xcode中桥接目标C头,但是相关的部分丢失了.
In order to proceed with the app, I will need to bridge the objective C header in Xcode but the related section is missing.
根据教程
我还注意到Xcode中也缺少 Swift Compiler –代码生成部分.
I have also noticed that the section Swift Compiler – Code Generation is also missing from Xcode.
为什么?
推荐答案
我已解决此问题,方法是先向项目中添加一个新的swift文件,然后出现相应的部分.
I have resolved this matter by first adding a new swift file to the project, then the respective section appeared.
您可能会说,我现在在项目文件夹中有一个空的Swift文件,还有一些桥接头文件的选项.
As you can probably tell, I now have an empty Swift file just sitting inside my project folder and options to bridge my header file.
感谢大家的帮助.
这篇关于找不到"Objective-C桥接标题"部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!