我正在尝试使用pod lib create创建一个cocoapod,但出于某种原因,永远不会创建.xcworkspace文件。
我已经尝试过更新Ruby,我尝试过使用我的同事正在使用的Ruby 2.0.0,并且对他来说效果很好。
以下是pod lib create命令的输出:
tmep chris$ pod lib create hello
Cloning `https://github.com/CocoaPods/pod-template.git` into `hello`.
/usr/local/rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.33.1/lib/cocoapods/executable.rb:55: warning: Insecure world writable dir /usr/local/rvm/gems in PATH, mode 040777
Configuring hello template.
/Users/chris/tmep/hello/setup/TemplateConfigurator.rb:172: warning: Insecure world writable dir /usr/local/rvm/gems in PATH, mode 040777
------------------------------
To get you started we need to ask 4 questions, this should only take a minute.
If this is your first time we recommend running through with the guide:
- http://guides.cocoapods.org/making/using-pod-lib-create.html
( hold cmd and double click links to open in a browser. )
Would you like to have a demo for your library? [ Yes / No ]
>
yes
Which testing frameworks will you use? [ Specta / Kiwi ]
>
specta
Would you like to do view based testing? [ Yes / No ]
>
yes
What is your class prefix?
> OS
Running pod install on your new library.
Analyzing dependencies
/usr/local/rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.33.1/lib/cocoapods/executable.rb:55: warning: Insecure world writable dir /usr/local/rvm/gems in PATH, mode 040777
[!] An error occurred while performing `git pull` on repo `studio_pods`.
[!] /usr/bin/git pull --ff-only
Your configuration specifies to merge with the ref 'master'
from the remote, but no such ref was fetched.
Ace! you're ready to go!
We will start you off by opening your project in Xcode
open 'hello/Example/hello.xcworkspace'
The file /Users/chris/tmep/hello/Example/hello.xcworkspace does not exist.
To learn more about the template see `https://github.com/CocoaPods/pod-template.git`.
To learn more about creating a new pod, see `http://guides.cocoapods.org/making/making-a-cocoapod`.
如果有人能够解决这个问题,我会非常感激,因为我很乐意立即开始使用这个伟大的工具!
答案 0 :(得分:0)
糟糕!只是想出它是什么。
我已经添加了一个回购pods(pod repo add),它一定是试图从那里下载依赖项!
对pod repo的调用将其排除。