ERROR! Vendor project "vendor/Pods" failed to compile

Hi all,

I’m trying to use any of these CocoaPods:



(Very important library, as you can see)

No matter what, if I install and build I get:

ERROR! Vendor project "vendor/Pods" failed to compile. See full error by running task with --trace.

Any thoughts what might be going on?

Here’s some verbose output that’s seems like a relevant snippet:

** BUILD FAILED **


The following build commands failed:
        CompileC /Users/nicky/Dropbox/wds-ios/vendor/build/Pods.build/Release-iphonesimulator/Pods-RubyMotion.build/Objects-normal/x86_64/Pods-RubyMotion-dummy.o /Users/nicky/Dropbox/imaginicky-tsites/wds-ios/vendor/Pods/Target\ Support\ Files/Pods-RubyMotion/Pods-RubyMotion-dummy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
    ERROR! Vendor project "vendor/Pods" failed to compile. See full error by running task with --trace.
/Library/RubyMotion/lib/motion/project/vendor.rb:368:in `block in invoke_xcodebuild'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/file_utils.rb:57:in `sh'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/file_utils_ext.rb:37:in `sh'
/Library/RubyMotion/lib/motion/project/vendor.rb:366:in `invoke_xcodebuild'
/Library/RubyMotion/lib/motion/project/vendor.rb:358:in `xcodebuild'
/Library/RubyMotion/lib/motion/project/vendor.rb:191:in `build_xcode'
/Library/RubyMotion/lib/motion/project/vendor.rb:49:in `block in build'
/Library/RubyMotion/lib/motion/project/vendor.rb:48:in `chdir'
/Library/RubyMotion/lib/motion/project/vendor.rb:48:in `build'
/Library/RubyMotion/lib/motion/project/builder.rb:86:in `block in build'
/Library/RubyMotion/lib/motion/project/builder.rb:85:in `each'
/Library/RubyMotion/lib/motion/project/builder.rb:85:in `build'
/Library/RubyMotion/lib/motion/project/app.rb:78:in `build'
/Users/nicky/.bundle/ruby/2.3.0/motion-cocoapods-cb424c44ec3e/lib/motion/project/cocoapods.rb:54:in `build_with_cocoapods'
/Users/nicky/.rubymotion/rubymotion-templates/motion/project/template/ios.rb:70:in `block (2 levels) in <top (required)>'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/Users/nicky/.rubymotion/rubymotion-templates/motion/project/template/ios.rb:183:in `block in <top (required)>'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:199:in `each'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:199:in `invoke_prerequisites'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
/Library/Ruby/Gems/2.3.0/gems/rake-10.5.0/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:22:in `load'
/usr/local/bin/rake:22:in `<main>'

As a general rule, Swift based CocoaPods aren’t usable with RubyMotion. You can tell it one IS usable, if it mentions ObjC compatibility.