CocoaPods Issue

126 views
Skip to first unread message

Michael Forzano

unread,
Mar 4, 2013, 1:04:12 PM3/4/13
to rubym...@googlegroups.com
Hello,

I'm having issues using motion-cocoapods. When I run rake I get the
following error:
rake aborted!
no such file to load -- motion-cocoapods
/Users/mike/rsg-client-ios/rsgames/Rakefile:7:in `require'
/Users/mike/rsg-client-ios/rsgames/Rakefile:7
/Library/Ruby/Gems/1.8/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in `load'
/Library/Ruby/Gems/1.8/gems/rake-10.0.3/lib/rake/rake_module.rb:25:in
`load_rakefile'
/Library/Ruby/Gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:583:in
`raw_load_rakefile'
/Library/Ruby/Gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:89:in
`load_rakefile'
/Library/Ruby/Gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:160:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:88:in
`load_rakefile'
/Library/Ruby/Gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:72:in `run'
/Library/Ruby/Gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:160:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:70:in `run'
/Library/Ruby/Gems/1.8/gems/rake-10.0.3/bin/rake:33
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

I do have motion-cocoapods and cocoapods installed; I followed the
instructions in the guide in the Dev Center. If I run gem list, I see:
activesupport (3.2.12)
addressable (2.3.3)
bundler (1.3.1)
cocoapods (0.16.4)
colored (1.2)
escape (0.0.4)
faraday (0.8.6)
faraday_middleware (0.9.0)
hashie (1.2.0)
i18n (0.6.4)
json (1.7.7)
motion-cocoapods (1.2.2)
multi_json (1.6.1)
multipart-post (1.2.0)
netrc (0.7.7)
octokit (1.23.0)
open4 (1.3.0)
ProMotion (0.4.1)
rake (10.0.3)
rubygems-update (2.0.0)
xcodeproj (0.5.1)

When I googled this issue the solution seemed to be add require
'rubygems' to the Rakefile, however this is already in my Rakefile
(which is)
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
require "rubygems"
require "bundler"
Bundler.require
require 'motion-cocoapods'

Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'RSGames'
app.pods do
pod 'CocoaAsyncSocket'
end
end

Does anyone have any ideas on how to solve this?

Thanks,
Mike

Joffrey Jaffeux

unread,
Mar 4, 2013, 1:26:06 PM3/4/13
to rubym...@googlegroups.com
can you try "bundle exec rake" plz ?

Michael Forzano

unread,
Mar 4, 2013, 2:12:16 PM3/4/13
to rubym...@googlegroups.com
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or
'http://rubygems.org' if not.
/Library/Ruby/Gems/1.8/gems/bundler-1.3.1/lib/bundler/rubygems_integration.rb:214:in
`gem': rake is not part of the bundle. Add it to Gemfile.
(Gem::LoadError)
from /usr/bin/rake:18
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "RubyMotion - Ruby for iOS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubymotion+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

Michael Forzano

unread,
Mar 4, 2013, 2:17:55 PM3/4/13
to rubym...@googlegroups.com
My Gemfile, if it helps:
source :rubygems

gem "ProMotion"

Jordan Maguire

unread,
Mar 5, 2013, 12:35:12 AM3/5/13
to rubym...@googlegroups.com
Hey Michael,

Looks like your Gemfile is pretty sparse.

Add the following two lines and try bundle exec rake again:

gem 'rake'
gem 'motion-cocoapods'

Here's some quick reading on what bundle exec does

Francis Chong

unread,
Mar 5, 2013, 9:21:27 PM3/5/13
to rubym...@googlegroups.com
Try "which gem" and "which ruby" to see which ruby and gem you are using.
Reply all
Reply to author
Forward
0 new messages