简体   繁体   English

在iPhone6设备上运行我的应用程序时出现错误

[英]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. 如果它是您自己的库,则可能必须更改为体系结构并重新构建。

在此处输入图片说明




And if you don't own the lib, then you can get the updated lib from the original source. 如果您不拥有该库,则可以从原始源获取更新的库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 应用程序无法在iPhone6上正确显示 - App not displaying properly on iphone6 在设备上运行iPhone应用程序时出错 - Error while running the iPhone app on device 在设备上运行时出现奇怪的iPhone错误 - Weird iPhone error when running on device 我的应用未在Appstore中显示与iPhone6和iPhone6 +的兼容性 - My app dont's show the Compatibility with iPhone6 and iPhone6+ in Appstore 关于iOS开发。 当我在iPhone6上运行项目时,启动屏幕没有显示,但是在模拟器iPhone6上运行时,显示了启动屏幕 - About iOS development. The launch screen didn't show when I run my project on my iPhone6,however,its's show when run on simulator iPhone6 如何为iPhone6 / 6 +优化混合应用 - How to optimize hybrid app for iphone6/6+ 在iPhone 6的Xcode 7中为按钮设置约束时出错 - Error in setting Constraints for buttons in Xcode 7 for iPhone6 dyld:库未加载:在iPhone设备上运行时出错 - dyld: Library not loaded: error when running on iphone device 当应用程序在我的设备(iPhone 6)上快速运行时,“没有可用的源1类型” - 'No available types for source 1' when the app runs on my device(IPhone 6) swift Device.device.model为iPhone5s设备返回iPhone6 - Device.device.model returns iPhone6 for iPhone5s device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM