错误:找不到“ GameDelegate”的协议声明;
//Swift protocol
import AVFoundation
import UIKit;
@objc protocol GameDelegate {
func lostConnection()
}
目标C类:
//play.h file
#import "SimpliSafe-Swift.h"
@interface SSStreamManager : NSObject
@property (assign) id<GameDelegate> delegate
@end
答案 0 :(得分:1)
请勿将Swift生成的标头导入标头文件!替换
#import "SimpliSafe-Swift.h"
使用
@protocol GameDelegate;