使用未解析的标识符 [英] Use unresolved identifier
本文介绍了使用未解析的标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序工作正常,现在突然Xcode给了我这个错误:
My app was working fine and now suddenly Xcode is giving me this error:
使用未解析的标识符卡删除
use unresolved identifier cardWasRemoved
func addNewCards() {
countOfCards = countOfCards-1
if(countOfCards >= 0){
self.arrayAuthorization.remove(at: dm.objectIndexToRemove)
cardWasRemoved(removeIndex: dm.objectIndexToRemove)
}
}
我的方法实现如下:
open func cardWasRemoved(removeIndex:Int) {
if layout.newCardShouldAppearOnTheBottom {
layout.cardDidRemoved(removeIndex)
} else {
layout.cardDidRemoved(removeIndex)
}
}
推荐答案
它可能是Debug构建配置有一些工件(当你尝试在模拟器上运行时),而你没有这些artifac ts用于发布配置。尝试删除DerivedData目录:如何删除Xcode 8中的派生数据?
It might be that there are some artifacts for the Debug build configuration (when you try running on a Simulator), and you don't have these artifacts for the Release configuration. Try removing your DerivedData directory: How to delete derived data in Xcode 8?
这篇关于使用未解析的标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文