New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bridge Support 2.0 for OSX vNext #18

Closed
amirrajan opened this Issue Sep 2, 2017 · 7 comments

Comments

Projects
None yet
2 participants

@amirrajan amirrajan self-assigned this Sep 8, 2017

@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Sep 17, 2017

Owner

Context. High Sierra upgraded their minimum ruby version to 2.3, so BridgeSupport needs to be rebuilt against that.

Owner

amirrajan commented Sep 17, 2017

Context. High Sierra upgraded their minimum ruby version to 2.3, so BridgeSupport needs to be rebuilt against that.

@amirrajan amirrajan removed their assignment Sep 20, 2017

@amirrajan amirrajan added this to the RM 5.1 milestone Sep 20, 2017

@amirrajan amirrajan changed the title from Bridge Support for OSX vNext to Bridge Support 2.0 for OSX vNext Sep 24, 2017

@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Sep 27, 2017

Owner

Beta:

git clone https://github.com/amirrajan/BridgeSupport.git
cd BridgeSupport
git checkout high-sierra
sudo mv /Library/RubyMotion/lib/BridgeSupport /Library/RubyMotion/lib/BridgeSupport.bak
sudo cp -r ./Versions/2.0/BridgeSupport/ /Library/RubyMotion/lib/BridgeSupport
Owner

amirrajan commented Sep 27, 2017

Beta:

git clone https://github.com/amirrajan/BridgeSupport.git
cd BridgeSupport
git checkout high-sierra
sudo mv /Library/RubyMotion/lib/BridgeSupport /Library/RubyMotion/lib/BridgeSupport.bak
sudo cp -r ./Versions/2.0/BridgeSupport/ /Library/RubyMotion/lib/BridgeSupport
@SimonC4

This comment has been minimized.

Show comment
Hide comment
@SimonC4

SimonC4 Sep 27, 2017

I'm now getting the following error.

      Link /Users/simon/iOSProjects/shift72-ios/vendor/build/Pods.build/Release-iphonesimulator/Pods-RubyMotion.build/Objects-normal/x86_64/libPods-RubyMotion.a
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin17/rbconfig.rb:214: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.bundle, 0x0009): required dylib '@rpath/libclang.dylib' not found, needed by '/System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.bundle'.  Did try: file not found '/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.13.xctoolchain/usr/lib/libclang.dylib', file not found '/usr/lib/libclang.dylib', file not found '/usr/local/lib/libclang.dylib' - /System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.bundle (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.rb:6:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Library/RubyMotion/lib/BridgeSupport/usr/bin/gen_bridge_metadata:65:in `<top (required)>'
	from /Library/RubyMotion/bin/gen_bridge_metadata:12:in `load'
	from /Library/RubyMotion/bin/gen_bridge_metadata:12:in `<main>'
rake aborted! 

It's looking for libclang.dylib on this path:

/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.13.xctoolchain/usr/lib/libclang.dylib

But it's at this path for me:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib

SimonC4 commented Sep 27, 2017

I'm now getting the following error.

      Link /Users/simon/iOSProjects/shift72-ios/vendor/build/Pods.build/Release-iphonesimulator/Pods-RubyMotion.build/Objects-normal/x86_64/libPods-RubyMotion.a
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/universal-darwin17/rbconfig.rb:214: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.bundle, 0x0009): required dylib '@rpath/libclang.dylib' not found, needed by '/System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.bundle'.  Did try: file not found '/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.13.xctoolchain/usr/lib/libclang.dylib', file not found '/usr/lib/libclang.dylib', file not found '/usr/local/lib/libclang.dylib' - /System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.bundle (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/BridgeSupport/ruby-2.3/bridgesupportparser.rb:6:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Library/RubyMotion/lib/BridgeSupport/usr/bin/gen_bridge_metadata:65:in `<top (required)>'
	from /Library/RubyMotion/bin/gen_bridge_metadata:12:in `load'
	from /Library/RubyMotion/bin/gen_bridge_metadata:12:in `<main>'
rake aborted! 

It's looking for libclang.dylib on this path:

/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.13.xctoolchain/usr/lib/libclang.dylib

But it's at this path for me:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib
@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Sep 29, 2017

Owner

workaround until release: cp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.13.xctoolchain

Owner

amirrajan commented Sep 29, 2017

workaround until release: cp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.13.xctoolchain

@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Sep 29, 2017

Owner

Beta (attempt two):

Update BridgeSupport/pull again, and copy binaries over:

git clone https://github.com/amirrajan/BridgeSupport.git
cd BridgeSupport
git checkout high-sierra
sudo mv /Library/RubyMotion/lib/BridgeSupport /Library/RubyMotion/lib/BridgeSupport.bak
sudo cp -r ./Versions/2.0/BridgeSupport/ /Library/RubyMotion/lib/BridgeSupport

After that do:

cp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.13.xctoolchain

Owner

amirrajan commented Sep 29, 2017

Beta (attempt two):

Update BridgeSupport/pull again, and copy binaries over:

git clone https://github.com/amirrajan/BridgeSupport.git
cd BridgeSupport
git checkout high-sierra
sudo mv /Library/RubyMotion/lib/BridgeSupport /Library/RubyMotion/lib/BridgeSupport.bak
sudo cp -r ./Versions/2.0/BridgeSupport/ /Library/RubyMotion/lib/BridgeSupport

After that do:

cp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.13.xctoolchain

@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Sep 29, 2017

Owner

Related: osxfuse/osxfuse#416 (comment)

Looks like it may be a bug in Xcode: osxfuse/osxfuse#416 (comment)

Owner

amirrajan commented Sep 29, 2017

Related: osxfuse/osxfuse#416 (comment)

Looks like it may be a bug in Xcode: osxfuse/osxfuse#416 (comment)

@amirrajan

This comment has been minimized.

Show comment
Hide comment
@amirrajan

amirrajan Sep 30, 2017

Owner

Done.

The following fixed the issue (waiting on Apple to rework their clang bindings):

  unless File.directory? "/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.13.xctoolchain"
    File.symlink "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain",
                 "/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.13.xctoolchain"
  end
Owner

amirrajan commented Sep 30, 2017

Done.

The following fixed the issue (waiting on Apple to rework their clang bindings):

  unless File.directory? "/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.13.xctoolchain"
    File.symlink "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain",
                 "/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.13.xctoolchain"
  end

@amirrajan amirrajan closed this Sep 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment