[英]Error appeared when running my App on iPhone6 device
my app is running well on simulator but when tried to run it on iPhone6 device the following two errors turned up : 我的应用在模拟器上运行良好,但是当尝试在iPhone6设备上运行该应用时,出现以下两个错误:
Undefined symbols for architecture arm64:
体系结构arm64的未定义符号:
"_OBJC_CLASS_$_CustomView", referenced from: objc-class-ref in TransparentView.o“ _OBJC_CLASS _ $ _ CustomView”,引用自:TransparentView.o中的objc-class-ref
and 和
ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld:找不到体系结构arm64的符号clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
the CustomView is header file included in staticLibrary the code which I have is : 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
Your static library is missing arm64
architecture. 您的静态库缺少
arm64
体系结构。
You can check the architecture supported by your lib by the following command in terminal 您可以通过终端中的以下命令来检查您的lib支持的体系结构
lipo --info /path/to/yourLib.a
If it's your own lib the you might have to change to architecture and rebuild it again. 如果它是您自己的库,则可能必须更改为体系结构并重新构建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.