How to find path of Bridging-Header.h - Swift, Xcode

ⅰ亾dé卋堺 提交于 2019-12-30 08:30:50

问题


Here I'm attaching a screenshot of created header file

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,

  2. Then search Swift in in the search box

  3. After that you will find a Objective C Bridging Header option in Swift Compiler Code Generation Area

  4. Add the bridging header path for this Objective C Bridging Header Option

  5. Path should be Given as

Also you can find below the screen shot for the reference.



来源:https://stackoverflow.com/questions/34627082/how-to-find-path-of-bridging-header-h-swift-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!