集成百度地图报错41个解决方法(转)

在集成百度地图SDK时遇到报错,涉及到多个iOS SDK符号未找到,如NSBackgroundColorAttributeName等。这些错误通常是由于缺少链接库或者未正确配置项目设置导致的。解决方案包括检查并确保已添加所有必要的系统框架和库,以及确认Build Settings中的Linker Flags设置无误。
摘要由CSDN通过智能技术生成

集成百度地图碰到了这种报错

Undefined symbols for architecture x86_64:

  "_NSBackgroundColorAttributeName", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

  "_NSFontAttributeName", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

      _baidu_vi::vi_map::GetFontTextrueSizeOS(unsigned short*, unsigned int, unsigned short*) in BaiduMapAPI_Base(VBGL.o)

  "_NSForegroundColorAttributeName", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

  "_NSParagraphStyleAttributeName", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

  "_NSStrokeColorAttributeName", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

  "_NSStrokeWidthAttributeName", referenced from:

      _baidu_vi::vi_map::GenTextImage(unsigned short*, unsigned int, unsigned int, unsigned int&, unsigned int&, unsigned int&, unsigned int&, unsigned long, unsigned long, unsigned long, unsigned int) in BaiduMapAPI_Base(VBGL.o)

  "_OBJC_CLASS_$_NSMutableParagraphStyle", referenced from:

      objc-class-ref in BaiduMapAPI_Base(VBGL.o)

  "_O

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值