RubyMotion和RestKit安装

问题描述:

我想在RubyMotion项目中使用RestKit,它证明比预期的要困难得多。RubyMotion和RestKit安装

我试图在这里列出https://github.com/rounders/RestKitTest

可惜的办法,本文吐出和错误,看起来像

ERROR! Building vendor project `vendor/RestKit' failed to create at least one `.a' library. 

我曾经尝试用运动的CocoaPods作为安装RestKit另一种方法具体说明如下:http://thunderboltlabs.com/posts/restkit-object-mapping-with-rubymotion.html

以下的Rakefile吐出以下错误

$:.unshift("/Library/RubyMotion/lib") 
require 'motion/project' 
require 'bundler' 
Bundler.require 

require './lib/app_properties' 
props = AppProperties.new 

Motion::Project::App.setup do |app| 
    # Use `rake config' to see complete project settings. 

    app.name = "TestApp" 

    app.pods do 
    pod 'RestKit/Network' 
    pod 'RestKit/UI' 
    pod 'RestKit/ObjectMapping' 
    pod 'RestKit/ObjectMapping/JSON' 
    end 
end 

错误:[!] Unable to find a specification for 'RestKit/Network'.

其他人谁也通过这些问题去帮助是极大的赞赏

+0

也许试试看'pod'RestKit''(离开'/ Network'等)? – 2013-05-07 05:59:17

+0

不幸的是,我已经给了它一个去,它不想工作。 :-( – 2013-05-07 09:37:25

我刚刚成立了Restkit项目今天。只要确保你有像我:

我的Rake文件,它使用捆扎机

# -*- coding: utf-8 -*- 
$:.unshift("/Library/RubyMotion/lib") 
require 'motion/project/template/ios' 
require "rubygems" 
require 'bundler' 
Bundler.require 

Motion::Project::App.setup do |app| 
    app.name = 'AppName' 
    app.pods do 
    pod 'RestKit', '0.20.1' 
    end 
end 

然后我的Gemfile

source "https://rubygems.org" 
gem "motion-cocoapods", "~> 1.3.0" 
gem "cocoapods", "0.18.1" 

然后

bundle 
rake clean 
rm -rf vendor 
rake 

它应该工作:-)