简体   繁体   English

为什么我在Xcode 7中为我的桥接标题不断出现此错误:桥接标题不存在?

[英]Why do I keep getting this error for my bridging Header in Xcode 7: Bridging Header does not exsist?

I updated my Xcode to version 7 and now I get this error saying the bridging header doesnt exist. 我将我的Xcode更新到版本7,现在我得到这个错误,说桥接头不存在。 It tells me that its supposed to be in the /users/desktop/apps/projectname/projectname-bridging-header.h. 它告诉我它应该在/users/desktop/apps/projectname/projectname-bridging-header.h中。 I checked in the file and its there but xcode still gives me an error. 我检查了文件及其中,但xcode仍然给我一个错误。 Has anyone had this problem before and know how to fix it. 有没有人之前有这个问题,知道如何解决它。 Thanks! 谢谢!

创建一个具有不同名称的新桥接文件并链接到该文件。

Try cleaning your build folder (Product menu, hold down option to reveal it). 尝试清理构建文件夹(“产品”菜单,按住选项以显示它)。

I experienced issues with cocoapods 'useframeworks!' 我遇到过cocoapods的useframeworks问题! and the build folder was being used, so even after removing it and using an objc version of the library, no matter what I did the bridging header was broken. 并且正在使用构建文件夹,所以即使在删除它并使用库的objc版本之后,无论我做了什么,桥接头都被破坏了。

I got it to work there was a problem in the Framework Search Paths. 我得到它的工作,框架搜索路径中有一个问题。 I had to add the destination for one of my ad networks. 我必须为我的一个广告网络添加目的地。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM