如何找到Bridging-Header.h的路径 - Swift,Xcode [英] How to find path of Bridging-Header.h - Swift, Xcode

查看:574
本文介绍了如何找到Bridging-Header.h的路径 - Swift,Xcode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里我附上了创建的头文件的屏幕截图

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?

推荐答案


  1. 首先进入项目构建设置,

  1. 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆