gpt4 book ai didi

ios - 在 ipod 上测试我的应用程序时收到错误消息

转载 作者:行者123 更新时间:2023-11-28 17:59:50 25 4
gpt4 key购买 nike

我用xcode4开发了一个 basemap app,我使用 MKCoordinateRegionMakeWithDistance 设置区域,如下所示:

self->map.hidden=NO;
CLLocationCoordinate2D loc = CLLocationCoordinate2DMake([[NSNumber numberWithFloat:34.923964] doubleValue],[[NSNumber numberWithFloat:-120.219558] doubleValue]);

NSLog(@"%f",[[NSNumber numberWithFloat:34.923964] doubleValue]);

MKCoordinateRegion reg = MKCoordinateRegionMakeWithDistance(loc,[[NSNumber numberWithFloat:1000] doubleValue],[[NSNumber numberWithFloat:1000] doubleValue]);

self->map.region = reg;

当我尝试对我编写的内容进行测试时,我收到以下消息:

架构 armv7 的 undefined symbol :
“_CLLocationCoordinate2DMake”,引用自:
-[MapViewController viewDidAppear:] 在 MapViewController.o
ld: 未找到体系结构 armv7 的符号
clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

消息是什么意思?

最佳答案

您的项目中是否包含了 CoreLocation 框架?

关于ios - 在 ipod 上测试我的应用程序时收到错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9297042/

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