我的应用在模拟器上运行良好 但是当试图在iPhone6设备上运行时,出现了以下两个错误:
架构arm64的未定义符号:
“_OBJC_CLASS _ $ _ CustomView”,引自: 透明视图中的objc-class-ref
和
ld:找不到架构arm64 clang的符号:错误:链接器 命令失败,退出代码为1(使用-v查看调用)
CustomView是staticLibrary中包含的头文件 我的代码是:
#import <UIKit/UIKit.h>
#import <CoreMotion/CoreMotion.h>
#import <CoreLocation/CoreLocation.h>
@interface CustomView : UIView<CLLocationManagerDelegate>
@property (strong, nonatomic)NSMutableDictionary* reducedlatLongDict;
@property (strong, nonatomic) NSMutableArray *reducednamesRequiredToLoad;
-(NSMutableArray*)sendTheDataToMainClass:(NSDictionary*)sendDictyionary :(NSString*)filterString1;
-(NSMutableArray*)gettingTheHeading:(CLHeading*)newHeading;
-(NSMutableArray*)getTheLocationUpdate:(CLLocation*)newLocation :(CLLocation*)fromLocation;
@end