在文件中缺少必需的体系结构i386 [英] missing required architecture i386 in file

查看:149
本文介绍了在文件中缺少必需的体系结构i386的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在添加MapKit和CoreLocation框架后,我无法构建我的应用程序。它们都是4.3框架,并且该应用程序曾经与UIKit,CoreGraphics和Foundation一起工作,只是给我这两个问题。不确定所需的架构是什么,代码中没有任何错误。任何帮助表示赞赏!

I am having trouble building my app after adding MapKit and CoreLocation frameworks. They are both 4.3 frameworks, and the app used to work fine with UIKit, CoreGraphics, and Foundation, just giving me problems with these two. Not sure what the required architecture is, there aren't any bugs in the code. Any help is appreciated!

ld: warning: ignoring file /Users/F3d3r3r/Desktop/testNav4_3/MapKit.framework/MapKit, missing required architecture i386 in file

ld: warning: ignoring file /Users/F3d3r3r/Desktop/testNav4_3/CoreLocation.framework/CoreLocation, missing required architecture i386 in file

Undefined symbols for architecture i386:
  "_CLLocationCoordinate2DMake", referenced from:
       -[Layer2 tableView:cellForRowAtIndexPath:] in Layer2.o
  "_OBJC_CLASS_$_MKMapView", referenced from:
       objc-class-ref in Layer2.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status


推荐答案

添加具有CLLocation的CoreLocation框架以及MapKit。

Add the CoreLocation framework, which has CLLocation, as well as MapKit.

这篇关于在文件中缺少必需的体系结构i386的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆