[英]Build error after removing Bridging Header from Xcode project
I'm trying to integrate my project from Google Analytics to Firebase Analytics.我正在尝试将我的项目从 Google Analytics 集成到 Firebase Analytics。 I was using Google Analytics SDK installed with Cococapods.我使用的是与 Cococapods 一起安装的 Google Analytics SDK。 After I do below steps;在我执行以下步骤之后;
I got build error with like average 300 error.我得到了平均 300 个错误的构建错误。 Like喜欢
Value of type 'CATransition' has no member 'fadeTransition' “CATransition”类型的值没有成员“fadeTransition”
I can successfully build when not uninstall Google Analytics SDK so there is no problem with my code.我可以在不卸载 Google Analytics SDK 的情况下成功构建,因此我的代码没有问题。 What can cause this problem?什么会导致这个问题?
EDIT: I found that deleting bridging header causes the problem, not the Google Analytics SDK.编辑:我发现删除桥接头会导致问题,而不是 Google Analytics SDK。
I found that most of my classes doesn't have import UIKit
and somehow, when project has objective-c header, It doesn't need it.我发现我的大多数类都没有import UIKit
并且不知何故,当项目具有objective-c头时,它不需要它。 However, after I delete it, all of these classes need it.但是,在我删除它之后,所有这些类都需要它。 Therefore, implementing因此,实施
import UIKit
fixed my problem.解决了我的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.