Skip to content

Instantly share code, notes, and snippets.

@Atastor
Atastor / better_not_run_this_as_script_but_do_it_step_by_step.sh
Last active October 2, 2018 20:20
Monkeypatching RubyMotion + CocoaPods + Mojave (potential base for a REAL fix)
# The following assumes that you have rbenv and rbenv's ruby version 2.3.7 installed.
# Please only do the following, if you know what you are doing.
# It might be best to wait for the official bugfix either from Apple or from Amir :-)
# WARNING: On my quest I might have made unnoticed use of abandoned attempts side effects ...
# So if you have trouble to make this work, contact me
#
# Check, whether /usr/include exists on your Mojave
# If not, follow https://apple.stackexchange.com/questions/337940/why-is-usr-include-missing-i-have-xcode-and-command-line-tools-installed-moja?newreg=68e416bca5774b52adfc675cbdf46620
@Atastor
Atastor / bash screenshot
Created October 1, 2018 05:56
Historic version of BridgeSupport installed, RM project still fails building
Kaladin:UCTInterimTime michaelp$ rbenv version
2.3.7 (set by /Users/michaelp/RubySpielwiese/UCTInterimTime/.ruby-version)
Kaladin:UCTInterimTime michaelp$ rake
Info Using certificate 'iPhone Developer: Michael Portz (UP9JP692KM)'.
Info Using provisioning profile '(MotionProvisioning) com.wamms.uct.interimtime ios development'.
Name: UCT:InterimTime
Using profile: /Users/michaelp/RubySpielwiese/UCTInterimTime/provisioning/com.wamms.uct.interimtime_ios_development_provisioning_profile.mobileprovision
Using certificate: iPhone Developer: Michael Portz (UP9JP692KM)
Generating Data Model UCTInterimTime
Loading schemas/0001_initial.rb
@Atastor
Atastor / MojaveBridgeSupportBuildFails.log
Created September 30, 2018 11:56
Building BridgeSuport on Mojave continues to fail
linking shared-object bridgesupportparser.bundle
+ /bin/mkdir -p -m 0755 /Users/michaelp/RubySpielwiese/BridgeSupport/DSTROOT/System/Library/BridgeSupport/ruby-2.3
+ /usr/bin/rsync -rlpt bridgesupportparser.bundle /Users/michaelp/RubySpielwiese/BridgeSupport/SYMROOT
+ /usr/bin/rsync -rlpt bridgesupportparser.bundle /Users/michaelp/RubySpielwiese/BridgeSupport/DSTROOT/System/Library/BridgeSupport/ruby-2.3
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -x /Users/michaelp/RubySpielwiese/BridgeSupport/DSTROOT/System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.bundle
+ /usr/bin/rsync -rlpt bridgesupportparser.rb /Users/michaelp/RubySpielwiese/BridgeSupport/DSTROOT/System/Library/BridgeSupport/ruby-2.3
/usr/bin/touch /Users/michaelp/RubySpielwiese/BridgeSupport/OBJROOT/.BS_RUBY.made
/usr/bin/install -m 0755 -o root -g wheel -d /Users/michaelp/RubySpielwiese/BridgeSupport/DSTROOT/System/Library/BridgeSupport/include
/usr/bin/install -m 0444 -o root -g
@Atastor
Atastor / gist:f20ef7ec1f6c091d1fc4a7bdbdd806b5
Last active September 28, 2018 13:27
Some other form of error in building BridgeSupport
In file included from bridgesupportparser_wrap.cpp:871:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby.h:33:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/ruby.h:1988:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/intern.h:47:19: warning:
'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]
void rb_mem_clear(register VALUE*, register long);
^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Ruby.framework/Versio