0

After having successfully installed and used the SDK on another computer for a project, I'm struggling to make it works on another station, getting the following error :

[!] Unable to find a specification for `Facebook-iOS-SDK`.

The version of the SDK is v3.5.1.

With the following rakefile :

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

Motion::Project::App.setup do |app|
  app.name = 'FacebookApp'
  app.frameworks    = ["UIKit", "Foundation", 'AdSupport', 'Accounts', 'Social']
  app.weak_frameworks += %w{ AdSupport Accounts Social }
  app.pods do
    pod 'Facebook-iOS-SDK'
  end
  app.device_family          = :iphone
  app.interface_orientations = [:portrait]
  app.info_plist['FacebookAppID'] = 'xxx'
  app.info_plist['URL types'] = { 'URL Schemes' => 'fb://profile/xxx'}
  app.identifier = 'xxx'
end

And the following Gemfile :

# A sample Gemfile
source "https://rubygems.org"
gem "motion-cocoapods", "1.3.0.rc1"
gem "cocoapods"
gem 'bubble-wrap'

Would there be something that is to add (environments paths, another sdk version to install… whatever) ?

4

3 回答 3

6
$ pod install --force

解决了。一些缓存问题或明显的东西。

编辑

通常,这些问题都可以通过 解决rake clean:all,然后重新安装 ( bundle install && rake pod:install)

于 2013-05-01T11:40:24.493 回答
0

我有同样的错误,事实证明我已经pod install在那个目录中了。这可以通过简单地输入pod不带参数来检查。

对于像我这样的 pod n00bz,您将需要pod init生成 podfile(此步骤不在我目前关注的入门文档中)。

于 2014-07-06T01:10:09.540 回答
0

对我来说,我已经将我的存储库移到了一台新计算机上,并且还没有运行它:

bundle exec pod setup
于 2015-06-06T01:07:24.837 回答