📂
JackyChen的精神時光屋
  • About
  • iPlayground
    • iPlayground 2020
      • iPlayground submit 2020
    • iPlayground 2019
      • Untitled
      • iPlayground submit 2019
  • WWDC
    • 2020 WWDC
    • 2019 WWDC
    • 2018 WWDC
      • What's New in Testing
      • BusinessChat
    • 2016 WWDC
      • What's New in the Apple Push Notification Service
  • AR/VR
    • ARKit plugin at Unity
    • ARKit
    • AR/VR 實習作品分享
    • Google Blocks
  • CI/CD
    • Continous Integretion for Unity
    • 拯救地球大作戰-自動化設定注意事項
    • Provisioning Profile 自動化更新
    • Make ipa file with personal team of code sign
    • Xcode11 版號問題
  • Test
    • Cucumberish
    • XCUITest
    • Design Patterns in XCUITest
    • Unit Test
  • User Interface
    • IBDesignable 和 IBInspectable
    • iOS 使用貝塞爾曲線繪製路徑
    • UIStatusBarStyle
    • iOS Devices Specification
    • Vector Image
    • Launch Screen
    • Haptic Feedback
    • Good Works for Storyboard
    • Cell 展開收合效果
    • ScrollView
    • Swift lazy
    • Lottie
  • Foundation
    • Adding a Custom Font to Your App
    • WKWebView how to work with javascript
    • Global Central Dispatch
    • HealthKit
    • Error Handling
    • Debug with LLDB
    • Application Lifecycle
    • Swift Codable
    • Push Notifications
    • AVFoudation
  • Others
    • C語言指標概念
    • UnsafePointer(Swift)
    • iOS News Reference
    • Blender
    • Free Web Server
    • Firebase
    • Firebase migration
    • GraphQL
    • Ruby
    • zsh command line
    • visudo
  • Security
    • 課程:App資安規劃與實作
    • KeyChain
    • iOS反組譯程序
    • Arxan
  • Git
    • Git
    • xcodeproj 合併衝突
    • Pull Request
  • Machine Learning
    • CoreML
    • Vision
    • Turi Create
  • 待分類
    • ABI Stability and More
    • Mirror
    • Carthage
    • SwiftUI
    • MVVM
    • OpenSSL
    • USDZ Convert
    • Nexus repository and gitlfs
Powered by GitBook
On this page

Was this helpful?

  1. Others

Ruby

PreviousGraphQLNextzsh command line

Last updated 5 years ago

Was this helpful?

    • Ruby 版本更新的速度很快,常需要新舊版本並存使用,此時就可以使用 RVM 來切換版本

    • RVM 和系統權限無關,它安裝在使用者目錄下 (~/.rvm) ,所以不需要用到 root 權限

    • 每個 Ruby 版本下都有自己獨立的 Gems,因此使用者常在不同版本使用時搞混

    • 一打開 terminal 就指定使用版本(如:2.4.0)

        rvm --default use 2.4.0
    • 確認是否切換到指定版本

        ruby -v 
        which ruby # 查詢 ruby 的安裝路徑
    • 在開發時,Cocoapods 常會遇到一些版本混亂的狀況,可以使用 Gemfile 來做版本控制

      • 安裝 bundler

              gem install bundler
      • 建立Gemfile

      • 執行以下指令,就會開始安裝 cocoapods 和 fastlane

              bundle install
RVM 官網
RVM - Ruby enVironment(Version) Manager
Setting the default Ruby
開發工具的版本控制 - Gemfile