0

这里我有一个 ruby​​ 项目 recoped motion 我开始跟着安装 cocoaPods 谁知道并花时间编译应用程序它告诉我以下问题 =>

Twitter/SHKiOS5Twitter.h: 10:9: fatal error: 'SHKSharer.h' file not found
# import "SHKSharer.h"
Facebook / SHKFacebook.h: 30:9: fatal error: 'SHKSharer.h' file not found
# import "SHKSharer.h"
Twitter / SHKTwitter.m: 31:9: fatal error: 'SHKConfiguration.h' file not found
# import "SHKConfiguration.h"

我不明白为什么,因为我按照指示

$ Sudo gem install cocoapods
$ Pod setup

$ Sudo gem install motion-cocoapods

谢谢你

4

1 回答 1

0

您还需要修改您的 Rakefile

下面$:.unshift("/Library/RubyMotion/lib"),添加:

require 'rubygems'
require 'motion-cocoapods'

接着 :

Motion::Project::App.setup do |app|
  # ...
  app.pods do
    pod 'JSONKit' #Name of your pod
  end
end
于 2013-09-05T20:10:11.147 回答