Class: Motion::Project::App

Inherits:
Object
  • Object
show all
Defined in:
lib/motion/project/monkeypatches.rb

Class Method Summary collapse

Class Method Details

.build_with_cocoapods(platform, opts = {}) ⇒ Object Also known as: build



39
40
41
42
43
44
45
46
47
48
49
# File 'lib/motion/project/monkeypatches.rb', line 39

def build_with_cocoapods(platform, opts = {})
  unless File.exist?(Motion::Pods::PODS_ROOT)
    $stderr.puts(
      "[!] No CocoaPods dependencies found in " \
      "#{Motion::Pods::PODS_ROOT}, run the " \
      "`[bundle exec] rake pod:install` task."
    )
    exit 1
  end
  build_without_cocoapods(platform, opts)
end