Skip to content
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

Build fails if using Xcode 11 toolchain #51

Open
CatalinMustata opened this issue Sep 12, 2019 · 4 comments
Open

Build fails if using Xcode 11 toolchain #51

CatalinMustata opened this issue Sep 12, 2019 · 4 comments

Comments

@CatalinMustata
Copy link

Noticed this on my machine and also on CircleCI that build fails when using Xcode 11 command line tools. I've switched the tools to Xcode 10.3 and it works fine on my machine, but it gets a bit more complicated when attempting to build on CircleCI.

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/Users/distiller/project/vendor/bundle/ruby/2.3.0/gems/unf_ext-0.0.7.6/ext/unf_ext
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r
./siteconf20190912-536-1ctxvha.rb extconf.rb
mkmf.rb can't find header files for ruby at
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h
@ottoo
Copy link

ottoo commented Sep 25, 2019

I'm having the same issue as well. Cannot use CircleCI to build, also fails locally when running bundle install.

If anybody finds here, this will help https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/22

@CatalinMustata
Copy link
Author

It seems the new toolchain changes the location of the Ruby headers. Have a look at the CircleCI forums for more info and workarounds:
https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/23

@bernikovich
Copy link

Installing unf_ext 0.0.7.6 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

:'(

@bernikovich
Copy link

Have you tried the following?
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants