V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
shiziwen
V2EX  ›  iOS

pod update 之后,找不到 BMapKit.h

  •  
  •   shiziwen · 2016-02-25 01:31:26 +08:00 · 2783 次点击
    这是一个创建于 2984 天前的主题,其中的信息可能已经有所发展或是发生改变。

    请教大家一个问题:
    我使用 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'
    ```

    3 条回复    2016-02-26 23:58:25 +08:00
    shiziwen
        1
    shiziwen  
    OP
       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
        2
    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
        3
    shiziwen  
    OP
       2016-02-26 23:58:25 +08:00
    @terryhwang

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

    等有时间了,在解决 pod 管理问题的产生原因。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1011 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 19:26 · PVG 03:26 · LAX 12:26 · JFK 15:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.