Ios swift自定义。框架找不到协议

Ios swift自定义。框架找不到协议,ios,xcode,swift,frameworks,Ios,Xcode,Swift,Frameworks,我有这个框架XXUIKit.framework,其中我有一个协议定义为XXConfigurable.swift @objc(XXUIConfigurable) protocol XXUIConfigurable { func configureItem(indexPath: NSIndexPath, data:AnyObject); } 框架内部的类可以找到这个协议。就在我尝试在框架之外使用它时: import XXUIKit ... func collectionView(collecti

我有这个框架
XXUIKit.framework
,其中我有一个协议定义为
XXConfigurable.swift

@objc(XXUIConfigurable)
protocol XXUIConfigurable {
 func configureItem(indexPath: NSIndexPath, data:AnyObject);
}
框架内部的类可以找到这个协议。就在我尝试在框架之外使用它时:

import XXUIKit
...
func collectionView(collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, atIndexPath indexPath: NSIndexPath) -> UICollectionReusableView {

    let header = collectionView.dequeueReusableSupplementaryViewOfKind(kind, withReuseIdentifier: sections[indexPath.row].cell, forIndexPath: indexPath) as? XXUIConfigurable
    return header
}
它找不到类型:

error: use of undeclared type 'XXUIConfigurable'

主应用程序可以从
XXUIKIt.framework

中找到并使用其他类。抱歉,我已经解决了

公共协议xxui可配置