Cocoapods not working in latest version


#1

I’ve just updated to the latest version of Rubymotion, Mac OS X and Xcode and now motion-cocoapods is not working anymore. If I create a test project with “motion-cocoapods” as the only gem and only one pod in the rakefile (as the example in the gem shows), then I get the following error:

Ignoring bson-4.3.0 because its extensions are not built.  Try: gem pristine bson --version 4.3.0
Ignoring bson-4.1.1 because its extensions are not built.  Try: gem pristine bson --version 4.1.1
     Build ./build/iPhoneSimulator-12.0-Development
Ignoring bson-4.3.0 because its extensions are not built.  Try: gem pristine bson --version 4.3.0
Ignoring bson-4.1.1 because its extensions are not built.  Try: gem pristine bson --version 4.1.1
/Library/RubyMotion/lib/BridgeSupport2/System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.bundle: [BUG] Segmentation fault at 0x0000000000c96522
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:
     * ~/Library/Logs/CrashReporter
     * /Library/Logs/CrashReporter
     * ~/Library/Logs/DiagnosticReports
     * /Library/Logs/DiagnosticReports
   for more details.
Don't forget to include the above Crash Report log file in bug reports.

-- Control frame information -----------------------------------------------
c:0010 p:-17582298933810 s:0047 e:000046 TOP    [FINISH]
c:0009 p:---- s:0045 e:000044 CFUNC  :require
c:0008 p:0124 s:0041 e:000040 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55
c:0007 p:0035 s:0031 e:000030 TOP    /Library/RubyMotion/lib/BridgeSupport2/System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.rb:6 [FINISH]
c:0006 p:---- s:0029 e:000028 CFUNC  :require
c:0005 p:0124 s:0025 e:000024 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55
c:0004 p:0215 s:0015 e:000014 TOP    /Library/RubyMotion/lib/BridgeSupport2/usr/bin/gen_bridge_metadata:65 [FINISH]
c:0003 p:---- s:0010 e:000009 CFUNC  :load
c:0002 p:0128 s:0006 E:001c00 EVAL   /Library/RubyMotion/bin/gen_bridge_metadata:36 [FINISH]
c:0001 p:0000 s:0002 E:002680 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
/Library/RubyMotion/bin/gen_bridge_metadata:36:in `<main>'
/Library/RubyMotion/bin/gen_bridge_metadata:36:in `load'
/Library/RubyMotion/lib/BridgeSupport2/usr/bin/gen_bridge_metadata:65:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Library/RubyMotion/lib/BridgeSupport2/System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.rb:6:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'

-- Machine register context ------------------------------------------------
 rax: 0x0000000000000000 rbx: 0x000000000869bf00 rcx: 0x000000010d38b7b0
 rdx: 0x0000000000000000 rdi: 0x000000010e058d49 rsi: 0x000000001f08000c
 rbp: 0x00007ffee2a07cb0 rsp: 0x00007ffee2a07c38  r8: 0x0000000000000000
  r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000
 r12: 0x0000000000000003 r13: 0x00007fed938be5d8 r14: 0x00007fed9572b540
 r15: 0x00007ffee2a07cc0 rip: 0x0000000000c96522 rfl: 0x0000000000010246

-- C level backtrace information -------------------------------------------
0   libruby.2.3.0.dylib                 0x00007fff486dd006 rb_print_backtrace + 29
1   libruby.2.3.0.dylib                 0x00007fff486dd1da rb_vm_bugreport + 361
2   libruby.2.3.0.dylib                 0x00007fff485d8413 rb_bug_context + 206
3   libruby.2.3.0.dylib                 0x00007fff48674422 Init_signal + 3270
4   libsystem_platform.dylib            0x00007fff6a5fab3d _sigtramp + 29
5   ???                                 0x0000000000c96522 0x0 + 13198626
6   bridgesupportparser.bundle          0x000000010d38b7d7 Init_bridgesupportparser + 39
7   libruby.2.3.0.dylib                 0x00007fff485a9551 dln_load + 229
8   libruby.2.3.0.dylib                 0x00007fff486d1fc8 rb_vm_call_cfunc + 169
9   libruby.2.3.0.dylib                 0x00007fff485e0b33 rb_require_internal + 1496
10  libruby.2.3.0.dylib                 0x00007fff485e04b5 rb_require_safe + 14
11  libruby.2.3.0.dylib                 0x00007fff486d50d8 rb_vm_fstring_table + 4999
12  libruby.2.3.0.dylib                 0x00007fff486c6021 rb_vm_get_insns_address_table + 8039
13  libruby.2.3.0.dylib                 0x00007fff486d177c rb_iseq_eval + 414
14  libruby.2.3.0.dylib                 0x00007fff485e0418 rb_load_protect + 562
15  libruby.2.3.0.dylib                 0x00007fff485e0bf6 rb_require_internal + 1691
16  libruby.2.3.0.dylib                 0x00007fff485e04b5 rb_require_safe + 14
17  libruby.2.3.0.dylib                 0x00007fff486d50d8 rb_vm_fstring_table + 4999
18  libruby.2.3.0.dylib                 0x00007fff486c6021 rb_vm_get_insns_address_table + 8039
19  libruby.2.3.0.dylib                 0x00007fff486d177c rb_iseq_eval + 414
20  libruby.2.3.0.dylib                 0x00007fff485e0418 rb_load_protect + 562
21  libruby.2.3.0.dylib                 0x00007fff485e0174 rb_load + 64
22  libruby.2.3.0.dylib                 0x00007fff485e1141 Init_load + 659
23  libruby.2.3.0.dylib                 0x00007fff486d50d8 rb_vm_fstring_table + 4999
24  libruby.2.3.0.dylib                 0x00007fff486c6021 rb_vm_get_insns_address_table + 8039
25  libruby.2.3.0.dylib                 0x00007fff486d177c rb_iseq_eval + 414
26  libruby.2.3.0.dylib                 0x00007fff485dce6a ruby_exec_node + 232
27  libruby.2.3.0.dylib                 0x00007fff485dcd5d ruby_run_node + 39
28  ruby                                0x000000010d1f61bd main + 98

-- Other runtime information -----------------------------------------------

* Loaded script: /Library/RubyMotion/bin/gen_bridge_metadata

* Loaded features:

    0 enumerator.so
    1 thread.rb
    2 rational.so
    3 complex.so
    4 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin18/enc/encdb.bundle
    5 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin18/enc/trans/transdb.bundle
    6 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/unicode_normalize.rb
    7 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin18/rbconfig.rb
    8 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/compatibility.rb
    9 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/defaults.rb
   10 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/deprecate.rb
   11 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/errors.rb
   12 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/version.rb
   13 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/requirement.rb
   14 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/platform.rb
   15 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/basic_specification.rb
   16 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/stub_specification.rb
   17 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/util/list.rb
   18 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin18/stringio.bundle
   19 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/rfc2396_parser.rb
   20 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/rfc3986_parser.rb
   21 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/common.rb
   22 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/generic.rb
   23 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/ftp.rb
   24 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/http.rb
   25 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/https.rb
   26 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/ldap.rb
   27 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/ldaps.rb
   28 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/mailto.rb
   29 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri.rb
   30 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/specification.rb
   31 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/exceptions.rb
   32 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb
   33 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb
   34 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/monitor.rb
   35 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb
   36 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems.rb
   37 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/path_support.rb
   38 /Users/holgersindbaek/.rvm/gems/ruby-2.4.1@global/gems/did_you_mean-1.1.0/lib/did_you_mean/version.rb
   39 /Users/holgersindbaek/.rvm/gems/ruby-2.4.1@global/gems/did_you_mean-1.1.0/lib/did_you_mean/core_ext/name_error.rb
   40 /Users/holgersindbaek/.rvm/gems/ruby-2.4.1@global/gems/did_you_mean-1.1.0/lib/did_you_mean/levenshtein.rb
   41 /Users/holgersindbaek/.rvm/gems/ruby-2.4.1@global/gems/did_you_mean-1.1.0/lib/did_you_mean/jaro_winkler.rb
   42 /Users/holgersindbaek/.rvm/gems/ruby-2.4.1@global/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checker.rb
   43 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/delegate.rb
   44 /Users/holgersindbaek/.rvm/gems/ruby-2.4.1@global/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
   45 /Users/holgersindbaek/.rvm/gems/ruby-2.4.1@global/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb
   46 /Users/holgersindbaek/.rvm/gems/ruby-2.4.1@global/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/name_error_checkers.rb
   47 /Users/holgersindbaek/.rvm/gems/ruby-2.4.1@global/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/method_name_checker.rb
   48 /Users/holgersindbaek/.rvm/gems/ruby-2.4.1@global/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/null_checker.rb
   49 /Users/holgersindbaek/.rvm/gems/ruby-2.4.1@global/gems/did_you_mean-1.1.0/lib/did_you_mean/formatter.rb
   50 /Users/holgersindbaek/.rvm/gems/ruby-2.4.1@global/gems/did_you_mean-1.1.0/lib/did_you_mean.rb
   51 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/security.rb
   52 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/parseexception.rb
   53 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/formatters/default.rb
   54 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/formatters/pretty.rb
   55 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/node.rb
   56 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/child.rb
   57 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/parent.rb
   58 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/xmltokens.rb
   59 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/namespace.rb
   60 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/encoding.rb
   61 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/source.rb
   62 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/entity.rb
   63 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/attlistdecl.rb
   64 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/doctype.rb
   65 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/text.rb
   66 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/attribute.rb
   67 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/cdata.rb
   68 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/functions.rb
   69 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/syncenumerator.rb
   70 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/parsers/xpathparser.rb
   71 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/xpath_parser.rb
   72 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/xpath.rb
   73 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/element.rb
   74 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/xmldecl.rb
   75 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/comment.rb
   76 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/instruction.rb
   77 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/rexml.rb
   78 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/output.rb
   79 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/undefinednamespaceexception.rb
   80 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/set.rb
   81 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/parsers/baseparser.rb
   82 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/parsers/streamparser.rb
   83 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/validation/validationexception.rb
   84 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/parsers/treeparser.rb
   85 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rexml/document.rb
   86 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin18/etc.bundle
   87 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb
   88 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/optparse.rb
   89 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/tmpdir.rb
   90 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin18/pathname.bundle
   91 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/pathname.rb
   92 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/ostruct.rb
   93 /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/shellwords.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

rake aborted!
Command failed with status (): [RUBYOPT='' '/Library/RubyMotion/bin/gen_br...]
/Library/RubyMotion/lib/motion/project/xcode_config.rb:505:in `gen_bridge_metadata'
/Library/RubyMotion/lib/motion/project/vendor.rb:243:in `generate_bridgesupport'
/Library/RubyMotion/lib/motion/project/vendor.rb:226: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:69:in `block in build'
/Library/RubyMotion/lib/motion/project/builder.rb:68:in `each'
/Library/RubyMotion/lib/motion/project/builder.rb:68:in `build'
/Library/RubyMotion/lib/motion/project/app.rb:78:in `build'
/Users/holgersindbaek/.rvm/gems/ruby-2.4.1/gems/motion-cocoapods-1.9.1/lib/motion/project/cocoapods.rb:54:in `build_with_cocoapods'
/Users/holgersindbaek/.rubymotion/rubymotion-templates/motion/project/template/ios.rb:70:in `block (2 levels) in <top (required)>'
/Users/holgersindbaek/.rubymotion/rubymotion-templates/motion/project/template/ios.rb:183:in `block in <top (required)>'
/Users/holgersindbaek/.rvm/gems/ruby-2.4.1/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/Users/holgersindbaek/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
/Users/holgersindbaek/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => build:simulator
(See full trace by running task with --trace)

I’ve created a test project you which replicates the issue:

Is anyone experiencing the same?


#2

Hi Holger,

This is a Mojave issue. It is currently discussed quite a lot in the Slack channel:
https://motioneers.slack.com/archives/C055RDLS0/p1538373766000100?thread_ts=1537915072.000100&cid=C055RDLS0


#3

Thanks for letting me know. I just looked at the threads for the last week in the Slack channel. Sounds like a RM update should be coming out around this weekend.