Search code examples
iosrubysdkfacebook-c#-sdkrubymotion

Rubymotion x Facebook iOS SDK // Install problems // [!] Unable to find a specification for `Facebook-iOS-SDK`


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) ?


Solution

  • $ pod install --force
    

    solved it. Some cache problem or something obviously.

    EDIT

    Usually, those kind of problems are solved with a rake clean:all, and a reinstall of it all (bundle install && rake pod:install)