我的应用程序工作正常,现在突然Xcode给了我这个错误:
使用未解析的标识符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)
}
}
答案 0 :(得分:0)
可能是Debug构建配置存在一些工件(当您尝试在Simulator上运行时),并且您没有这些工件用于Release配置。尝试删除DerivedData目录:How to delete derived data in Xcode 8?