问题描述
这里我附上了创建的头文件的屏幕截图
Here I'm attaching a screenshot of created header file
我在xcode中创建了一个新的头文件,并将其命名为(projectname)-Bridging-Header。 H。但我无法找到路径并使其发挥作用。如何找到文件的路径?
I have created a new header file in xcode and named it as (projectname)-Bridging-Header.h. But I am not able to find the path and make it work. How to find the path of the file?
推荐答案
-
首先进入项目构建设置,
First go to project build setting,
然后搜索Swift in in搜索框
Then search Swift in in the search box
之后,您将在 Swift编译器代码生成区域中找到 Objective C Bridging Header 选项
After that you will find a Objective C Bridging Header option in Swift Compiler Code Generation Area
为此目标C桥接标题选项
路径应该是
你也可以找到在屏幕截图下面作为参考。
Also you can find below the screen shot for the reference.
这篇关于如何找到Bridging-Header.h的路径 - Swift,Xcode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!