After trying to upgrade my flutter apps dependencies failed, I've seen a command in the call stack and tried to run it. Now I think I screwed up my local ruby installation with my workarounds. I would like to know if I could retrace my steps to get the original ruby setup without my workarounds, without reinstalling the OS or is it fine the way it is?
Possible important information:
- Ventura: 13.0
- XCode: 14.01
Here is a summary of what I've done:
It was: sudo gem pristine ffi --version 1.15.5
, but instead of fixing stuff it broken even more. Some things were missing and I tried to get back to it's original state.
I've found this answer. Now I tried to reinstall cocoapods which was apperantly broken by running: sudo gem install cocoapods
.
Didn't work out because of some missing ruby/config.h
headers apperantly. After researching I once again found an answer:
-
- I ran:
cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby
- I ran:
-
- There I created the systemlink:
sudo ln -sf ../../../../Headers/ruby/config.h
- There I created the systemlink:
-
- Afterwards I navigated one folder up:
cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0
- Afterwards I navigated one folder up:
-
- And here I needed to do something different from the original answer: I needed to run:
sudo ln -sf universal-darwin21 universal-darwin22
- And here I needed to do something different from the original answer: I needed to run:
I've also installed the xcode cli 14.2 beta thing, but that didn't help either.
Now the App I tried to upgrade is broken, but a different one seems to work, so I think not everything is broken on the system, at least I hope so.
config.h
is gone). Maybe it's not a solution for you, but for me installing Ruby 3.1.2 withbrew
worked: stackoverflow.com/a/68118750/1435891. At least I was unblocked and able to build with fastlane. Hope that helps.