gpt4 book ai didi

iphone - 文件中缺少所需的架构 i386

转载 作者:行者123 更新时间:2023-12-03 18:26:15 25 4
gpt4 key购买 nike

添加 MapKit 和 CoreLocation 框架后,我在构建应用程序时遇到问题。它们都是 4.3 框架,并且该应用程序过去可以与 UIKit、CoreGraphics 和 Foundation 一起正常工作,只是这两个框架给我带来了问题。不确定所需的架构是什么,代码中没有任何错误。如有任何帮助,我们将不胜感激!

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

最佳答案

添加 CoreLocation 框架,其中包含 CLLocation 以及 MapKit。

关于iphone - 文件中缺少所需的架构 i386,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5544985/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com