Xcode Swift未声明的类型和生成设置

Xcode Swift未声明的类型和生成设置,xcode,swift2,Xcode,Swift2,错误:使用未声明的类型CalendarViewDelegate 在ViewController.Swift中 class ViewController: UIViewController, CalendarViewDelegate 但是我在CalendarKit\CalendarView.swift中有CalendarViewDelegate protocol CalendarViewDelegate: class { ... } class calendarView: UIView, UI

错误:使用未声明的类型CalendarViewDelegate

在ViewController.Swift中

class ViewController: UIViewController, CalendarViewDelegate
但是我在CalendarKit\CalendarView.swift中有CalendarViewDelegate

protocol CalendarViewDelegate: class { ... }

class calendarView: UIView, UICollectionViewDataSource ...

所有的类和协议都存在。。但是他们没有被加载到路径中。我对Xcode不够熟悉,所以我在哪里遗漏了这个呢?

在您的
ViewController.Swift

import calendarView
编辑:

请确保在目标生成设置中正确设置
库搜索路径
,如下所示。路径应相对于.xcodeproj文件


这样做会产生错误No-this module calendarView No-this module calendarView。我不能设置路径或其他东西。所有的日历文件都在一个名为CalendarKit的子文件夹中,所以我这样做了,但它仍然不起作用。我知道这必须很简单。。。我可能正盯着itRestarted,并在更新搜索路径后再次打开。。现在可以用了谢谢你的更新。我正在做更多的研究为什么它不起作用:)。很高兴它有帮助!