amirrajan / rubymotion-applied

RubyMotion documentation provided by the community. Submit a pull request to the docs for a free one year indie subscription.
Apache License 2.0
49 stars 10 forks source link

[BUG] Segmentation fault in gen_bridge_metadata when running rake on Xcode 10--should I update to 10.1? #114

Open spnkr opened 5 years ago

spnkr commented 5 years ago

I'm getting this error with 5.15 and Xcode 10.0/Mojave. I saw on slack that xcode 10.0 is better supported than 10.1 at the moment. Is this true? Should I try updating to xcode 10.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]
amirrajan commented 5 years ago

The current workaround is to disable SIP on your Mac. I'm working on a patch where every execution of gen_bridge_metdata is prefixed with DYLD_LIBRARY_PATH=/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib. I'll have more information by next week on this (for play by play updates come to the Slack channel).

spnkr commented 5 years ago

Ok, awesome that you're working on it. csrutil disable didn't fix the issue for me, but I'll try upgrading to xcode 10.1 and see if that helps. I'll post the rest of the discussion on slack. thx @amirrajan !!