The file “Pods.xcconfig” couldn’t be opened because there is no such file.
2014-11-11 10:08
495 查看
从github上下载的项目,运行后报错
/Users/wyapple/Downloads/kanaishinichi-TAXHeaderSheet-8b83e84/TAXHeaderSheetDemo.xcodeproj The file “Pods.xcconfig” couldn’t be opened because there is no such file. (/Users/wyapple/Downloads/kanaishinichi-TAXHeaderSheet-8b83e84/Pods/Pods.xcconfig)
1、如果你安装过CocoaPods(没安装过的话往下翻看第二点),只需要
cd 到项目工程所在的文件夹下
如cd /Users/wyapple/Downloads/kanaishinichi/
再执行pod update
然后直接运行项目所属的目录下的新生成的.xcworkspace后缀的文件,运行的时候打开这个文件即可。
2、下面是我摸索解决的过程,如果你也遇到同样的问题可以参考下
于是百度了一下:运行了git
submodule update -i --recursive后报错:Error loading RubyGems plugin "/Users/lukfan/.rvm/gems/ruby-1.9.3-p125/gems/rubygems-bundler-0.3.0/lib/rubygems_plugin.rb":
cannot load such file -- rubygems_bundler/rubygems_bundler_installer (LoadError)
接下来:在XCode里面将Command Line Tools装好以后,升级一下RVM,然后安装Ruby 1.9.3-p194。
rvm implode
就可以把rvm连同ruby一起卸载调,然后
就可以一键将RVM,Ruby1.9.3p194连同Bundler一起装好。
卸载不完全,需要自己手动卸载,所以把终端上提示的如:.bash_profile开头的、.bashrc、.rvm、.zsh头的文件文件删了,
然后参考这个网址:http://www.it165.net/pro/html/201402/9213.html安装CocoaPods
在安装前,我们先做点小动作。
由于安装CocoaPods时我们要访问cocoapods.org,该网站可能被我们大天朝墙了,这样下载安装可能会是龟速,幸好我们可以用淘宝的Ruby镜像来访问该网站,方法如下:
print?
成功后,使用以下命令查看:
view
sourceprint?
可以看到替换镜像成功:
view
sourceprint?
接下来是真正的安装,在终端输入以下命令:
view
sourceprint?
安装输出非常长,这里就不贴出来了。
然后使用setup命令配置CocoaPods(这个命令也可以不运行,但是第一次使用pod命令时这个setup过程也会自动执行)
view
sourceprint?
这个时间可能比较长,耐心等待下。
安装完成后,最后让我们cd 到项目工程所在的文件夹下
如cd /Users/wyapple/Downloads/kanaishinichi/
再执行pod update
结果如下:
Update all pods
Analyzing dependencies
CocoaPods 0.35.0.rc2 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ. Downloading dependencies
Installing TAXSpreadSheet (0.2.1)
Generating Pods project
Integrating client project
[!] From now on use `TAXHeaderSheetDemo.xcworkspace`.
[!] The use of implicit sources has been deprecated. To continue using all of the sources currently on your machine, add the following to the top of your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
这样会生成一个.xcworkspace后缀的文件,运行的时候打开这个文件即可,到此运行成功!!!
/Users/wyapple/Downloads/kanaishinichi-TAXHeaderSheet-8b83e84/TAXHeaderSheetDemo.xcodeproj The file “Pods.xcconfig” couldn’t be opened because there is no such file. (/Users/wyapple/Downloads/kanaishinichi-TAXHeaderSheet-8b83e84/Pods/Pods.xcconfig)
1、如果你安装过CocoaPods(没安装过的话往下翻看第二点),只需要
cd 到项目工程所在的文件夹下
如cd /Users/wyapple/Downloads/kanaishinichi/
再执行pod update
然后直接运行项目所属的目录下的新生成的.xcworkspace后缀的文件,运行的时候打开这个文件即可。
2、下面是我摸索解决的过程,如果你也遇到同样的问题可以参考下
于是百度了一下:运行了git
submodule update -i --recursive后报错:Error loading RubyGems plugin "/Users/lukfan/.rvm/gems/ruby-1.9.3-p125/gems/rubygems-bundler-0.3.0/lib/rubygems_plugin.rb":
cannot load such file -- rubygems_bundler/rubygems_bundler_installer (LoadError)
接下来:在XCode里面将Command Line Tools装好以后,升级一下RVM,然后安装Ruby 1.9.3-p194。
rvm implode
就可以把rvm连同ruby一起卸载调,然后
curl -L https://get.rvm.io | bash -s stable --ruby
就可以一键将RVM,Ruby1.9.3p194连同Bundler一起装好。
卸载不完全,需要自己手动卸载,所以把终端上提示的如:.bash_profile开头的、.bashrc、.rvm、.zsh头的文件文件删了,
然后参考这个网址:http://www.it165.net/pro/html/201402/9213.html安装CocoaPods
在安装前,我们先做点小动作。
由于安装CocoaPods时我们要访问cocoapods.org,该网站可能被我们大天朝墙了,这样下载安装可能会是龟速,幸好我们可以用淘宝的Ruby镜像来访问该网站,方法如下:
print?
1.
$ gem sources --remove https:
//rubygems.org/
2.
$ gem sources -a http:
//ruby.taobao.org/
成功后,使用以下命令查看:
view
sourceprint?
1.
$ gem sources -l
可以看到替换镜像成功:
view
sourceprint?
1.
*** CURRENT SOURCES ***
2.
3.
http:
//ruby.taobao.org/
接下来是真正的安装,在终端输入以下命令:
view
sourceprint?
1.
$ sudo gem install cocoapods
安装输出非常长,这里就不贴出来了。
然后使用setup命令配置CocoaPods(这个命令也可以不运行,但是第一次使用pod命令时这个setup过程也会自动执行)
view
sourceprint?
1.
AppledeMacBook-Pro:~ apple$ pod setup
2.
Setting up CocoaPods master repo
3.
Setup completed (read-only access)
这个时间可能比较长,耐心等待下。
安装完成后,最后让我们cd 到项目工程所在的文件夹下
如cd /Users/wyapple/Downloads/kanaishinichi/
再执行pod update
结果如下:
Update all pods
Analyzing dependencies
CocoaPods 0.35.0.rc2 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ. Downloading dependencies
Installing TAXSpreadSheet (0.2.1)
Generating Pods project
Integrating client project
[!] From now on use `TAXHeaderSheetDemo.xcworkspace`.
[!] The use of implicit sources has been deprecated. To continue using all of the sources currently on your machine, add the following to the top of your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
这样会生成一个.xcworkspace后缀的文件,运行的时候打开这个文件即可,到此运行成功!!!
相关文章推荐
- The file “Pods.xcconfig” couldn’t be opened because there is no such file.
- The file “xxx.xcconfig” couldn’t be opened because there is no such file?
- The file “Info.plist” couldn’t be opened because there is no such file
- 更改Info.plist 报错 “Info.plist couldn't be opened because there is no such file”
- Info.plist Utility Error: “Info.plist couldn't be opened because there is no such file”
- iOS xcode "XXXXX.h couldn't be opened because there is no such file"
- The file “Info.plist” couldn’t be opened because there is no such file
- iOS开发Debug之"The file “Info.plist” couldn’t be opened because there is no such file"
- The file “Info.plist” couldn’t be opened because there is no such file
- Read data:the file "Info.plist" couldn't be opened because there is no such file
- The file “Info.plist” couldn’t be opened because there is no such file.
- the file 'xxxx' couldn't be opened because there is no such file
- could not read data from 'Configurat'/Info.plist': The file “plist” couldn’t be opened because there
- Xcode6:The file couldn’t be opened because you don’t have permission to view it
- TF80012: The document cannot be opened because there is a problem with the installation of the Microsoft Visual Studio v
- 【iOS开发-101】解决方案:The file * couldn't be opened because you don't have permission to view it
- Swift The file “” couldn’t be opened because you don’t have permission to view it?
- The file “XXX” couldn’t be opened because you don’t have permission to view it.解决方法:
- iOS the file "xxx.app" couldn't be opened because you don't have permission to view it.
- The file “” couldn’t be opened because you don’t have permission to view it.