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。

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

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值