Swift框架成功构建,导入项目成功编译,但无法访问任何公共类

Swift框架成功构建,导入项目成功编译,但无法访问任何公共类,swift,frameworks,swift2,Swift,Frameworks,Swift2,首先,若框架有问题,那个么框架不应该成功构建。 第二,若导入框架或设置有问题,那个么项目就不应该成功完成 这是swift标题,GestureKit swift.h // Generated by Apple Swift version 2.0 (swiftlang-700.0.42.3 clang-700.0.53.3) #pragma clang diagnostic push #if defined(__has_include) && __has_include(<s

首先,若框架有问题,那个么框架不应该成功构建。 第二,若导入框架或设置有问题,那个么项目就不应该成功完成

这是swift标题,
GestureKit swift.h

// Generated by Apple Swift version 2.0 (swiftlang-700.0.42.3 clang-700.0.53.3)
#pragma clang diagnostic push

#if defined(__has_include) && __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif

#pragma clang diagnostic ignored "-Wauto-import"
#include <objc/NSObject.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>

#if defined(__has_include) && __has_include(<uchar.h>)
# include <uchar.h>
#elif !defined(__cplusplus) || __cplusplus < 201103L
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
#endif

typedef struct _NSZone NSZone;

#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif

#if defined(__has_attribute) && __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
#else
# define SWIFT_RUNTIME_NAME(X)
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA
#endif
#if !defined(SWIFT_CLASS)
# if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted) 
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
# else
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif

#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif

#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif

#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if defined(__has_attribute) && __has_attribute(objc_designated_initializer)
#  define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
#  define OBJC_DESIGNATED_INITIALIZER
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum SWIFT_ENUM_EXTRA _name : _type
#endif
typedef float swift_float2  __attribute__((__ext_vector_type__(2)));
typedef float swift_float3  __attribute__((__ext_vector_type__(3)));
typedef float swift_float4  __attribute__((__ext_vector_type__(4)));
typedef double swift_double2  __attribute__((__ext_vector_type__(2)));
typedef double swift_double3  __attribute__((__ext_vector_type__(3)));
typedef double swift_double4  __attribute__((__ext_vector_type__(4)));
typedef int swift_int2  __attribute__((__ext_vector_type__(2)));
typedef int swift_int3  __attribute__((__ext_vector_type__(3)));
typedef int swift_int4  __attribute__((__ext_vector_type__(4)));
#if defined(__has_feature) && __has_feature(modules)
@import ObjectiveC;
#endif

#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
@class GKPattern;
@class GKGesture;

SWIFT_CLASS("_TtC10GestureKit12GKClassifier")
@interface GKClassifier : NSObject
@property (nonatomic, readonly, copy) NSArray<GKPattern *> * __nonnull patterns;
@property (nonatomic, readonly, copy) NSArray * __nonnull minPeakHeight;
@property (nonatomic, readonly) double minProminence;
@property (nonatomic, readonly) NSInteger peakHalfWidth;
@property (nonatomic, readonly) NSInteger window;
@property (nonatomic, readonly) NSInteger length;
@property (nonatomic, readonly) NSInteger width;
- (nonnull instancetype)initWithPatterns:(NSArray<GKPattern *> * __nonnull)patterns minPeakHeight:(NSArray * __nonnull)minPeakHeight minProminence:(double)minProminence peakHalfWidth:(NSInteger)peakHalfWidth window:(NSInteger)window OBJC_DESIGNATED_INITIALIZER;
- (GKGesture * __nullable)classify:(GKPattern * __nonnull)testCase;
@end

@class NSNotification;

SWIFT_CLASS("_TtC10GestureKit9GKGesture")
@interface GKGesture : NSObject
@property (nonatomic, readonly, copy) NSString * __nonnull name;
@property (nonatomic, readonly, copy) NSString * __nonnull notificationName;
@property (nonatomic, readonly) NSNotification * __nonnull notification;
- (nonnull instancetype)initWithName:(NSString * __nonnull)name OBJC_DESIGNATED_INITIALIZER;
- (void)registerNotification:(id __nonnull)observer selector:(SEL __null_unspecified)selector;
- (void)deregisterNotification:(id __nonnull)observer;
- (void)postNotification;
@end


SWIFT_CLASS("_TtC10GestureKit9GKPattern")
@interface GKPattern : NSObject
@property (nonatomic, readonly, copy) NSString * __nonnull name;
@property (nonatomic, readonly, copy) NSArray<NSArray *> * __nonnull data;
@property (nonatomic, readonly) NSInteger length;
@property (nonatomic, readonly) NSInteger width;
- (nonnull instancetype)initWithData:(NSArray<NSArray *> * __nonnull)data OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithName:(NSString * __nonnull)name data:(NSArray<NSArray *> * __nonnull)data OBJC_DESIGNATED_INITIALIZER;
- (BOOL)isAlignedWith:(GKPattern * __nonnull)rhs;
- (void)saveLocally;
@end


SWIFT_CLASS("_TtC10GestureKit7GKQueue")
@interface GKQueue : NSObject
@property (nonatomic, readonly, copy) NSArray<NSArray *> * __nonnull data;
@property (nonatomic, readonly) NSInteger length;
@property (nonatomic, readonly) NSInteger width;
@property (nonatomic, readonly) BOOL full;
- (nonnull instancetype)initWithLength:(NSInteger)length width:(NSInteger)width OBJC_DESIGNATED_INITIALIZER;
- (GKPattern * __nullable)enque:(NSArray * __nonnull)data;
@end


SWIFT_CLASS("_TtC10GestureKit10GKRecorder")
@interface GKRecorder : NSObject
@property (nonatomic, readonly, copy) NSArray<NSArray *> * __nonnull data;
@property (nonatomic, readonly) NSInteger length;
@property (nonatomic, readonly) NSInteger width;
- (nonnull instancetype)initWithWidth:(NSInteger)width OBJC_DESIGNATED_INITIALIZER;
- (void)enque:(NSArray * __nonnull)data;
- (GKPattern * __nonnull)createPattern:(NSString * __nonnull)name;
- (void)reset;
@end


SWIFT_CLASS("_TtC10GestureKit11GKUtilities")
@interface GKUtilities : NSObject
+ (double)findCost:(GKPattern * __nonnull)lhs rhs:(GKPattern * __nonnull)rhs searchRange:(NSInteger)searchRange;
+ (double)findDistance:(GKPattern * __nonnull)lhs rhs:(GKPattern * __nonnull)rhs lhsIndex:(NSInteger)lhsIndex rhsIndex:(NSInteger)rhsIndex;
+ (NSArray<NSArray *> * __nonnull)initCostTable:(NSInteger)length;
+ (NSArray * __nonnull)quantize:(NSArray * __nonnull)data;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

#pragma clang diagnostic pop
//由苹果Swift 2.0版(swiftlang-700.0.42.3 clang-700.0.53.3)生成
#pragma-clang诊断推送
#如果定义了(\uuuu有\uu包含)和&\uuuu有\uu包含()
#包括
#恩迪夫
#pragma-clang诊断被忽略“-Wauto-import”
#包括
#包括
#包括
#包括
#如果定义了(\uuuu有\uu包含)和&\uuuu有\uu包含()
#包括
#艾利夫!已定义(_cplusplus)| | _cplusplus<201103L
类型定义至少16个字符;
类型定义至少32个字符;
#恩迪夫
typedef struct _nszonenszone;
#如果!已定义(快速粘贴)
#定义快速粘贴辅助对象(x,y)x##y
#定义快捷粘贴(x,y)快捷粘贴辅助对象(x,y)
#恩迪夫
#如果!已定义(SWIFT_元类型)
#定义SWIFT_元类型(X)类
#恩迪夫
#如果已定义(_有_属性)&&&_有_属性(objc_运行时_名称)
#定义SWIFT_运行时_名称(X)_属性_((objc_运行时_名称(X)))
#否则
#定义SWIFT_运行时_名称(X)
#恩迪夫
#如果!已定义(SWIFT_类_额外)
#定义SWIFT\u类\u额外
#恩迪夫
#如果!已定义(SWIFT_协议_额外)
#定义SWIFT\u协议\u额外
#恩迪夫
#如果!已定义(SWIFT_枚举_额外)
#定义SWIFT_ENUM_EXTRA
#恩迪夫
#如果!已定义(SWIFT_类)
#如果已定义(_具有_属性)&&&_具有_属性(objc_子类化受限制)
#定义SWIFT_类(SWIFT_名称)SWIFT_运行时_名称(SWIFT_名称)_属性_((objc_子类化_受限))SWIFT_类
#否则
#定义SWIFT_类(SWIFT_名称)SWIFT_运行时_名称(SWIFT_名称)SWIFT_类\u额外
#恩迪夫
#恩迪夫
#如果!已定义(SWIFT_协议)
#定义SWIFT_协议(SWIFT_名称)SWIFT_运行时_名称(SWIFT_名称)SWIFT_协议\u额外
#恩迪夫
#如果!已定义(SWIFT_扩展)
#定义SWIFT_扩展名(M)SWIFT_粘贴(M###U SWIFT_uu,uu线uu)
#恩迪夫
#如果!已定义(OBJC_指定_初始值设定项)
#如果已定义(_有_属性)&&&_有_属性(objc指定的_初始值设定项)
#定义OBJC_指定的_初始值设定项_属性_((OBJC_指定的_初始值设定项))
#否则
#定义OBJC_指定的_初始值设定项
#恩迪夫
#恩迪夫
#如果!已定义(SWIFT_枚举)
#定义SWIFT_枚举(_类型,_名称)枚举名称:_类型_名称;枚举快捷\u枚举额外\u名称:\u类型
#恩迪夫
typedef float swift_float2____属性__((__ext_vector_type_uu2));
typedef float swift_float3_uuu属性_uuu((uu ext_vector_type_uu3));
typedef float swift_float4_uuu属性_uuu((uuu ext_vector_type_uu4));
typedef double swift_double 2_uuu属性_uuu((uu ext_vector_type_uuu2));
typedef double swift_double 3_uuuuu属性_uuu((uuu ext_vector_type_uu3));
typedef double swift_double 4_uuu属性_uuu((uu ext_vector_type_uu4));
typedef int swift_int2____属性__((__ext_vector_type_uu2));
typedef int swift_int3___属性__((__ext_vector_type_u3));
typedef int swift_int4____属性_((__ext_vector_type_u4));
#如果定义了(\uuuu有\u功能)和&\uuu有\u功能(模块)
@进口目标c;
#恩迪夫
#pragma-clang诊断已忽略“-Wproperty属性不匹配”
#pragma-clang诊断被忽略“-wdupplicate-method-arg”
@班级模式;
@类手势;
SWIFT类(“TTC10GestureKit12GK分类器”)
@接口:NSObject
@属性(非原子、只读、复制)NSArray*\uu非空模式;
@属性(非原子、只读、副本)NSArray*\uu非空minPeakHeight;
@属性(非原子,只读)双重显著性;
@属性(非原子,只读)NSInteger peakHalfWidth;
@属性(非原子,只读)NSInteger窗口;
@属性(非原子,只读)n整数长度;
@属性(非原子,只读)的标识符宽度;
-(非Null instancetype)initWithPatterns:(NSArray*u非Null)patterns minPeakHeight:(NSArray*uu非Null)minPeakHeight MinProgression:(double)MinProgression PeakalfWidth:(NSInteger)PeakalfWidth window:(NSInteger)window OBJC_指定的初始值设定项;
-(GKProtation*\uuuuu nullable)分类:(GKPattern*\uuuu nonnull)测试用例;
@结束
@类别通知;
SWIFT类(“TTC10GestureKit9GK手势”)
@接口:NSObject
@属性(非原子、只读、复制)NSString*\uuu非空名称;
@属性(非原子、只读、副本)NSString*\uuu非空notificationName;
@属性(非原子、只读)NSNotification*\uuu非空通知;
-(非Null instancetype)initWithName:(NSString*u非Null)名称OBJC_指定的初始值设定项;
-(void)寄存器通知:(id非空)观察者选择器:(SEL非空)选择器;
-(无效)注销通知:(id非空)观察员;
-(无效)事后通知;
@结束
SWIFT类(“TtC10GestureKit9GKPattern”)
@接口模式:NSObject
@属性(非原子、只读、复制)NSString*\uuu非空名称;
@属性(非原子、只读、复制)NSArray*\uu非空数据;
@属性(非原子,只读)n整数长度;
@属性(非原子,只读)的标识符宽度;
-(非Null instancetype)initWithData:(NSArray*u非Null)数据对象指定的初始值设定项;
-(非Null instancetype)initWithName:(NSString*uu非Null)名称数据:(NSArray*uu非Null)数据对象指定的初始值设定项;
-(BOOL)与:(GKPattern*uu nonnull)rhs对齐;
-(无效)在本地保存;
@结束
SWIFT类(“TtC10GestureKit7GKQueue”)
@接口队列:NSObject
@属性(非原子、只读、复制)NSArray*\uu非空数据;
@属性(非原子,只读)n整数长度;
@属性(非原子,只读)的标识符宽度;
@属性(非原子,只读)BOOL-full;
-(非空instancetype)initWithLength:(NSInteger)length width:(NSInteger)width OBJC_指定的初始值设定项;
-(GKPattern*\uuuu nullable)enque:(NSArray*\uuu nonnull)数据;
@结束
SWIFT类(“TtC10GestureKit10GKRecorder”)
@接口记录器:NSObject
@属性(非原子、只读、复制)NSArray*\uu非空数据;
@属性(非原子,只读)n整数长度;
@属性(非原子,只读)的标识符宽度;
-(非空instancetype)initWithWidth:(NSInteger)width OBJC_指定的_初始值设定项;
-