简体   繁体   English

从Swift 2项目中删除Obj-C桥接头后的错误

[英]Errors after removing Obj-C Bridging Header from Swift 2 Project

Was trying to implement some Obj-C code into my Swift 2 project and decided that I was going to try a different method. 试图在我的Swift 2项目中实现一些Obj-C代码,并决定尝试不同的方法。

I deleted the files I added, including the newly created bridging header. 我删除了我添加的文件,包括新创建的桥接头。

I went to build settings and removed the contents of the "Objective-C Bridging Header" setting and now I am getting bombarded with errors. 我去构建设置并删除了“Objective-C Bridging Header”设置的内容,现在我受到了错误的轰炸。

My project was running fine with no errors prior to the Obj-C fiasco. 在Obj-C惨败之前,我的项目运行良好,没有任何错误。

Can someone help? 有人可以帮忙吗? See attached image for the errors I am getting. 请参阅附图,了解我遇到的错误。

在此输入图像描述

According to the errors, your swift files (profileVeedVC.swift) still refer to the obj-c code. 根据错误,您的swift文件(profileVeedVC.swift)仍然引用obj-c代码。 Remove the pod from your podfile and remove any references within the files. 从podfile中删除pod并删除文件中的所有引用。

Good luck! 祝好运!

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

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