source code added
This commit is contained in:
55
development/planxo/cocoapods.readme
Normal file
55
development/planxo/cocoapods.readme
Normal file
@@ -0,0 +1,55 @@
|
||||
# install a modern Ruby with rbenv (safe, no sudo for gems)
|
||||
# 1) Install Homebrew (if you don't have it)
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||
|
||||
# 2) Install rbenv + ruby-build
|
||||
brew update
|
||||
brew install rbenv ruby-build
|
||||
|
||||
# 3) Initialize rbenv in your shell (zsh)
|
||||
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
|
||||
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
|
||||
source ~/.zshrc
|
||||
|
||||
# 4) Install a modern Ruby (pick a 3.x version; 3.2.x or 3.1.x are fine)
|
||||
rbenv install 3.2.2 # or `rbenv install 3.3.0` if available and you want latest
|
||||
rbenv global 3.2.2
|
||||
|
||||
# verify
|
||||
ruby -v
|
||||
|
||||
# 5) Install CocoaPods (no sudo)
|
||||
gem install cocoapods
|
||||
|
||||
# 6) Rehash rbenv shims
|
||||
rbenv rehash
|
||||
|
||||
|
||||
# 1. Confirm rbenv state and active ruby
|
||||
rbenv versions
|
||||
rbenv global # shows global version
|
||||
ruby -v
|
||||
|
||||
# 2. Make sure the active ruby is what you expect (optional if you already set it)
|
||||
# If `rbenv global` is not 3.2.2, set it:
|
||||
rbenv global 3.2.2
|
||||
|
||||
# 3. Install CocoaPods for the active Ruby (no sudo)
|
||||
gem install cocoapods
|
||||
|
||||
# 4. Rebuild rbenv shims so `pod` is available
|
||||
rbenv rehash
|
||||
|
||||
# 5. Verify
|
||||
which pod
|
||||
pod --version
|
||||
|
||||
|
||||
cd <your_flutter_project> # e.g. ~/Dev/planxo or wherever
|
||||
# if project has macOS support:
|
||||
cd macos
|
||||
pod install --repo-update
|
||||
cd ..
|
||||
flutter clean
|
||||
flutter pub get
|
||||
flutter run -d macos
|
||||
Reference in New Issue
Block a user