cocoaPods "xxxx is not used in any concrete target"
来源:互联网 发布:五级网络 编辑:程序博客网 时间:2024/06/06 02:18
今天使用cocoaPods的时候遇到一些奇怪的问题,在编辑好Podfile的之后,执行 pod install
提示出错,错误信息如下
/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:308:in `to_specs': Could not find 'cocoapods' (>= 0) among 73 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/Users/Shu/.rvm/gems/ruby-2.3.0:/Users/Shu/.rvm/gems/ruby-2.3.0@global', execute `gem env` for more information
from /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:320:in `to_spec'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
from /usr/local/bin/pod:22:in <main>
在网上搜寻了一下应该是和gem的版本和cocoaPods的版本有关系,因为我之前配置过Ruby环境,可能因此有关,随即便升级一下gem,执行sudo gem update --system
成功之后再查看pod --version
还是报错,只好使用sudo gem install
更新,现在支持了增量更新,所以不用再配置cocoaPods。
更新之后再查看pod --version
已经正常显示:1.0.0
无法执行pod install命令
更新完成之后,我以添加FMDB库为例,修改了Podfile文件如下platform :ios, '7.0'
pod 'FMDB'
end
但是执行pod install
之后提示
Analyzing dependencies
[!] The dependency FMDB
is not used in any concrete target.
查询资料之后得知这是因为现在新版pods需要指明你的target,才可以安装,把Podfile修改成platform :ios, '7.0'
target "iOS项目名" do
pod 'FMDB'
end
再执行pod install
即可完成打包.
- cocoaPods "xxxx is not used in any concrete target"
- The dependency `XXXX` is not used in any concrete target.
- is not used in any concrete target
- cocoapods pod install 安装报错 is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods error:The dependency '' is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking (~> 3.0.4s)` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- iOS CocoaPods 报错: The dependency `UMengSocialCOM (~> 5.2.1)` is not used in any concrete target.
- CocoaPods报错:The dependency `` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- Cocoapods: The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target
- [!] The dependency `AFNetworking (~> 3.1.0)` is not used in any concrete target. --------cocoapods引用
- Java 中常用的数据源
- Android 通过java代码实现修改指定路径文件的读写权限。
- linux 数据盘分区并挂载
- Junit 使用--高级篇
- 102. Binary Tree Level Order Traversal
- cocoaPods "xxxx is not used in any concrete target"
- 【操作系统】CentOS 7 jdk下载及安装教程
- appium java环境搭建及demo
- Java变量以及内存分配(非常重要)
- 华为解锁BL
- bzoj 1176(cdq分治)
- Android面试总论
- UVA 639 Don't Get Rooked
- codeforces-598