pod update 之后,找不到 BMapKit.h

2016-02-25 01:31:26 +08:00
 shiziwen

请教大家一个问题:
我使用 pod update,更新了一个第三方的库, clean 之后,重新编译,会报“ BMapKit.h not found ”的错误,已经尝试了一天了,还是没有进展,请问大家遇到过类似的问题吗?多谢。

下面是我的 Podfile :
```
platform :ios, '7.0'

pod 'AFNetworking', '~> 2.5.1'
pod 'SDWebImage', '~> 3.7.2'
pod 'MBProgressHUD', '~> 0.9.1'
pod 'FMDB', '~> 2.5'
pod 'Masonry', '~> 0.6.1'
pod 'BaiduMapAPI', '~> 2.8.0'
pod 'AVOSCloud'
pod 'AVOSCloudIM'
```

2797 次点击
所在节点    iOS
3 条回复
shiziwen
2016-02-25 14:34:04 +08:00
pod 'BaiduMapAPI', '~> 2.8.0' 改成了之前的 pod 'BaiduMapAPI', '~> 2.7.0'

我又尝试进行了如下操作,
 1. Finally got it to work by adding (including quotes) "${PODS_ROOT}/BuildHeaders" to the User Header Search Paths entry, and checking 'recursive'.

$(inherited) flag added in target 'HEADER_SEARCH_PATHS' and 'OTHER_LDFLAGS' of the app

i found ${PODS_HEADERS_SEARCH_PATHS} is missing and it is not defined in my develop git branch, So i added "$(SRCROOT)/Pods/Headers/" for Header Search Paths with recursive

但是有开始报 leancloud 的库的问题了。
terryhwang
2016-02-26 10:06:26 +08:00
那就自己建一个头文件呗

#import <BaiduMapAPI_Base/BMKBaseComponent.h>
#import <BaiduMapAPI_Map/BMKMapComponent.h>
#import <BaiduMapAPI_Search/BMKSearchComponent.h>
#import <BaiduMapAPI_Cloud/BMKCloudSearchComponent.h>
#import <BaiduMapAPI_Location/BMKLocationComponent.h>
#import <BaiduMapAPI_Utils/BMKUtilsComponent.h>
#import <BaiduMapAPI_Radar/BMKRadarComponent.h>
shiziwen
2016-02-26 23:58:25 +08:00
@terryhwang

已经改用手动添加的方式了。

等有时间了,在解决 pod 管理问题的产生原因。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/258931

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX