[英]'weak' cannot be applied to non-class type '<< error type>>'
We use git. 我们使用git。 After I used git pull, I run it and get two errors like this
使用git pull之后,我运行它并得到两个错误,例如
I have import MIBadgeButton_Swift. 我已导入MIBadgeButton_Swift。 I have a storyboard with a MIBadgeButton object.
我有一个带有MIBadgeButton对象的情节提要。 I drag a connection to my view controller.
我将连接拖到我的视图控制器。 error:1.Use of undeclared type 'MIBadgeButton' 2.'weak' cannot be applied to non-class type '<< error type>>' But other guys can build project success.
错误:1。使用未声明类型的“ MIBadgeButton”2。“弱”不能应用于非类类型“ <<错误类型>>”,但是其他人可以使项目成功。 So why I am getting this error and how to remove this error?
那么,为什么我会收到此错误,以及如何删除此错误?
Is the button you are using placed in a local framework? 您使用的按钮是否放置在本地框架中? if so try to rebuild the framework first, if you are not sure try next steps.
如果是这样,请尝试首先重建框架;如果不确定,请尝试后续步骤。
If you say that everybody else can run the project, it seems that your build folder got mess. 如果您说其他人都可以运行该项目,则您的构建文件夹似乎一团糟。 You can try this steps in order to clean it
您可以尝试执行以下步骤以对其进行清洁
cmd
+ alt
+ shift
+ K
cmd
+ alt
+ shift
+ K
Now, when you will press start, a new and clean build will be made 现在,当您按开始时,将创建一个新的,干净的版本
Update you mentioned you use pods to manage your project, do a pod outdated
- to check if there are any pods outdated, you are interested in the one with the button mostly, if so do an update on it 更新您提到的您使用Pod来管理您的项目,做一个
pod outdated
的pod outdated
检查是否有任何过时的Pod,您对按钮最感兴趣的是Pod,如果是,则对其进行更新
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.