自2018年10月18日起,高德开发者论坛除车机板块外,其他板块将停止发帖与维护,如您有使用问题请 提交工单 联系我们,感谢您的理解。

楼主: chenjie1986928
打印 上一主题 下一主题

一键配置高德API(使用CocoaPods添加高德API)

[复制链接]
最佳答案
0 

0

主题

2

帖子

6

积分

新手上路

Rank: 1

积分
6
楼主
发表于 2016-12-2 13:13:54 | 显示全部楼层
楼主 您好,我使用cocopods导入的SDK,导入后不报错,使用文件后,编译报错.
如下 :
用的coocpods集成的高德定位的SDK,有个问题,当我在AppDelegate 导入头文件的时候,系统不报错,但是当我是用高德代码: [AMapLocationServices sharedServices].apiKey = @"xxxxxxxxxx"; 这句话的时候,也不报错。但是编译的时候报错。  


错误为:Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_AMapServices", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
请问怎么回事呢?
回复 支持 反对

使用道具 举报

最佳答案
0 

0

主题

2

帖子

6

积分

新手上路

Rank: 1

积分
6
沙发
发表于 2016-12-2 14:11:20 | 显示全部楼层
用的coocpods集成的高德定位的SDK,有个问题,当我在AppDelegate 导入头文件的时候,系统不报错,但是当我是用高德代码: [AMapLocationServices sharedServices].apiKey = @"xxxxxxxxxx"; 这句话的时候,也不报错。但是编译的时候报错。  


错误为:Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_AMapServices", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|小黑屋|高德开发者论坛

Copyright ©2014 高德开发者论坛.All Rights Reserved |京ICP证070711号

意见反馈 常见问题 服务条款 联系我们
快速回复 返回顶部 返回列表