Created
June 12, 2013 07:41
-
-
Save goshacmd/5763489 to your computer and use it in GitHub Desktop.
OS X [REDACTED] Ruby 2.0 headers fix.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sys_rb_usr=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr | |
sdk_rb_usr=`xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr | |
sudo cp -r $sdk_rb_usr/include $sys_rb_usr/include |
Anyway to run this without having the Xcode 5 DP?
There is Xcode 5.0.1 GM (with 10.9 sdk) seed in iOS Dev Center now.
Had to reinstall ruby (with rbenv) to get things working again (installed the xcode GM before that)
Seems like Xcode 5.0.1 GM fixes this problem.
XCode 5.0.1 release definitely is fixing this issue.
Thanks, the workaround worked :-). Even with 5.0.1 installed from the App Store it didn't work.
I can confirm that upgrading to Xcode 5.0.2 solved my problem as well.
Sorry for a little off topic, does anyone meet the following issue with Yosemite and Xcode 6 beta
/Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:159:in `synchronize': ERROR: Failed to build gem native extension. (Gem::Ext::BuildError)
ERROR: Failed to build gem native extension.
deadlock; recursive locking
It seems Apple makes another bug with Ruby in Yosemite
Thanks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@danmartyn simply download the Xcode 5 preview from the Mavericks dev centre, once its downloaded, open the disk image, and right click on the Xcode icon and choose "show package contents", from there navigate to
Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
and copy the 10.9 sdk - then do the same with your app store downloaded Xcode and paste the 10.9 sdk into the MacOSX.platforms' SDKs folder. Done.