zoukankan      html  css  js  c++  java
  • The dependency `BaiduMapKit` is not used in any concrete target

    RubertdeMacBook-Pro:项目名 Rubert$ pod install

    Analyzing dependencies

    [!] The dependency `BaiduMapKit` is not used in any concrete target.

     

    ===========已下是我找到解决办法后,运行的日志=========================

    RubertdeMacBook-Pro:项目目录 Rubert$ pod install

    Analyzing dependencies

    Downloading dependencies

    Installing BaiduMapKit (2.10.2)

    Generating Pods project

    Integrating client project

     

    [!] Please close any current Xcode sessions and use `项目名.xcworkspace` for this project from now on.

    Sending stats

    Pod installation complete! There is 1 dependency from the Podfile and 1 total

    pod installed.

     

    [!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.

     

    [!] The `项目名 [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-项目名/Pods-项目名.debug.xcconfig'. This can lead to problems with the CocoaPods installation

        - Use the `$(inherited)` flag, or

        - Remove the build settings from the target.

     

    [!] The `项目名 [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-项目名/Pods-SubwayInspection.release.xcconfig'. This can lead to problems with the CocoaPods installation

        - Use the `$(inherited)` flag, or

        - Remove the build settings from the target.

    =========================华丽丽的结束=====================

      场景描述,在前几天用的是Xocde7.1-beta创建的一个项目,按照百度提供的《开发指南》来操作,成功的运行起来了地图。虽然指南写得有点乱,虽然很想吐槽下这种编译方式。

      昨晚更新了Xcode到7.3,系统当然也更新了。同样是创建了新项目,同样是需要地图,同样是需要编译环境。但是不管怎么执行命令:pod install,依旧是提示:[!] The dependency `BaiduMapKit` is not used in any concrete target. 折腾了好一会,百度了下。

    http://www.mamicode.com/info-detail-1174267.html

    最后重新编写Podfile文件。内容如下:

    platform :ios, ‘8.3‘
    target "您的项目名" do
    pod 'BaiduMapKit’,’2.10.2’
    end

    ==先说明下8.3,这个是我随便写的一个版本号,但是target后面跟的是你的项目名,并且'BaiduMapkit'后面需要跟百度地图的版本号2.10.2。

    这样。。。在执行下命令就可以了。

     

     

     

     

     

     

  • 相关阅读:
    Mysql:为什么用limit时,offset很大会影响性能
    [解决方案]未能找到路径“~in oslyncsc.exe”的一部分
    [经验分享]NuGet发布自己的Dll(类库包)
    [解决方案]使用百度富文本编辑器,编辑显示不了内容
    [解决方案]未能加载文件或程序集
    [经验分享]WebApi+SwaggerUI 完美展示接口
    [经验分享]Linux网络连接-VMware+CentOS 7
    [经验分享]WebAPI中返回类型JsonMessage的应用
    [解决方案]WebAPI+SwaggerUI部署服务器后,访问一直报错的问题
    [解决方案] 当 IDENTITY_INSERT 设置为 OFF 时
  • 原文地址:https://www.cnblogs.com/royi123/p/5482305.html
Copyright © 2011-2022 走看看