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。

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

 

 

 

 

 

 

 

你可能感兴趣的:(The dependency `BaiduMapKit` is not used in any concrete target)