<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by 賴彥宇 on Medium]]></title>
        <description><![CDATA[Stories by 賴彥宇 on Medium]]></description>
        <link>https://medium.com/@yanyulai?source=rss-76ea524369f5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*lOlr0OmumDyJVnS2.</url>
            <title>Stories by 賴彥宇 on Medium</title>
            <link>https://medium.com/@yanyulai?source=rss-76ea524369f5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 17:10:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yanyulai/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[安裝Fastlane環境，使用RVM]]></title>
            <link>https://medium.com/@yanyulai/%E5%AE%89%E8%A3%9Dfastlane%E7%92%B0%E5%A2%83-%E4%BD%BF%E7%94%A8rvm-eb5e76852006?source=rss-76ea524369f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb5e76852006</guid>
            <category><![CDATA[fastlane]]></category>
            <dc:creator><![CDATA[賴彥宇]]></dc:creator>
            <pubDate>Tue, 23 Oct 2018 01:57:03 GMT</pubDate>
            <atom:updated>2018-10-23T03:30:41.264Z</atom:updated>
            <content:encoded><![CDATA[<p>因為有半年Ruby on Rails的開發經驗。在研究fastlane時，知道fastlane使用ruby gem來安裝，所以第一個直覺就是應該要裝個rvm再來安裝fastlane。確保在ruby版本控管可以減少套件之間相依性的問題。而且使用cocoapod也是用ruby寫得，所以就順便一起用rvm來控管會比較保險。</p><h3>1. 安裝RVM</h3><ul><li>安裝指令curl -L get.rvm.io | bash -s stable</li><li>安裝成功console out會出現run &#39;source /Users/{UserName}/.rvm/sripts/rvm&#39;，依照步驟完成指定來源</li><li>輸入rvm -v，顯示rvm版本號，表示已正確安裝完成</li><li>列出已知的ruby版本rvm list known</li><li>先安裝最新穩定版本rvm install 2.5.1</li><li>查詢目前rvm所安裝的ruby版本 rvm list</li><li>確認當前Ruby使用版本ruby -v，正確顯示2.5.1表示安裝完成</li><li>其他rvm指令可參考<a href="https://railsbook.tw/chapters/02-environment-setup.html#use-rvm">為你自己學Ruby on Rails</a>中的環境設定</li></ul><h3>2. 安裝fastlane</h3><p>安裝好ruby環境之後，依照fastlane<a href="https://docs.fastlane.tools/">官方文件</a>首頁的Getting Started沒什麼困難。這邊想要提醒的就是，安裝的方式選sudo gem install fastlane -NV，因為這樣才能像其他的RubyGem一樣安裝。理由可見fastlane核心貢獻者的<a href="https://stackoverflow.com/questions/43209979/whats-difference-between-installing-fastlane-using-homebrew-cask-gem-install-a">建議</a>。</p><p>安裝完成可以透過fastlane -v，檢查版本來確認是否安裝完成</p><h3>3. 協同開發的版本控管</h3><p>在接觸fastlane時，同時知道是rubygem的時候，就想過可不可以用Gemfile放入repo，讓專案可以獨立控管。所幸找有大大 <a href="https://medium.com/u/e13f6afcf9b9">Ethan Huang</a>已經寫好，可參考<a href="https://medium.com/@ethanhuang13/%E9%96%8B%E7%99%BC%E5%B7%A5%E5%85%B7%E7%9A%84%E7%89%88%E6%9C%AC%E6%8E%A7%E5%88%B6-%E5%9C%A8%E5%B0%88%E6%A1%88%E8%A3%A1%E7%B6%81%E5%AE%9A-cocoapods-%E8%88%87-fastlane-%E7%89%88%E6%9C%AC-d4c27ea46257">開發工具的版本控制 — 在專案裡綁定 CocoaPods 與 fastlane 版本</a>。</p><p>這邊唯一要特別注意的是，如果你要確實使用在該專案下的fastlane版本的話，要加個前綴bundle exec。</p><p>例如fastlane match要改成bundle exec fastlane match。這兩者執行的差異可<a href="https://stackoverflow.com/questions/6588674/what-does-bundle-exec-rake-mean">參考</a>。一個使執行系統安裝的fastlane，一個是在專案bundle下的fastlane</p><h4>待續</h4><p>下一篇會寫fastlane的腳本設定自身案例，以及一些lane action的使用經驗</p><p><em>Originally published at </em><a href="https://gist.github.com/a974b3938ca37aa18e72504be3406bd6"><em>gist.github.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb5e76852006" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>