<?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 Bobo Shone on Medium]]></title>
        <description><![CDATA[Stories by Bobo Shone on Medium]]></description>
        <link>https://medium.com/@boboboa32?source=rss-2b8935d72271------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U7BP4T1cv6C9w5OIj8mi9g.png</url>
            <title>Stories by Bobo Shone on Medium</title>
            <link>https://medium.com/@boboboa32?source=rss-2b8935d72271------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 22:41:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@boboboa32/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[Use Vector Images in Xcode 9]]></title>
            <link>https://medium.com/bobo-shone/use-vector-images-in-xcode-9-17980b7e0fad?source=rss-2b8935d72271------2</link>
            <guid isPermaLink="false">https://medium.com/p/17980b7e0fad</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[xcode-9]]></category>
            <category><![CDATA[sketch]]></category>
            <dc:creator><![CDATA[Bobo Shone]]></dc:creator>
            <pubDate>Wed, 03 Jan 2018 09:16:29 GMT</pubDate>
            <atom:updated>2018-01-03T09:16:29.785Z</atom:updated>
            <content:encoded><![CDATA[<p>Xcode 9 is a good chance to start using vector image in iOS.</p><p><a href="https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/WhatsNewXcode/xcode_9/xcode_9.html">What’s New in Xcode 9</a></p><blockquote><strong>Asset Catalogs</strong></blockquote><blockquote>* Added option to preserve image vector data for matching Dynamic Type scaling</blockquote><p>In previous Xcode, vector image generates PNGs for different screen size in build time and then the vector data will be lost. If you use the vector image again for other size, the image will use the previous PNGs to resize.</p><p>But in Xcode 9, vector image data can be preserved if you check “Preserve Vector Data” option in the image’s attributes inspector which makes it a real vector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*C--3Nj0niBVOXlUrM4cFCQ.png" /></figure><p><strong>Sketch tips</strong></p><p>I use Sketch to generator <a href="https://www.sketchapp.com/docs/exporting/file-formats/">PDF</a> vector image. Since our app is based on 2X screen, so the pdf image’s origin size is 2X size. After added to project, choose “Scales” option to “Single Scale” then there’ll be no 1x/2x/3x options.</p><h3>Read More</h3><ul><li><a href="http://martiancraft.com/blog/2017/06/xcode9-assets/">Asset Catalog Changes in Xcode 9</a></li><li><a href="https://useyourloaf.com/blog/xcode-9-vector-images/">Xcode 9 Vector Images</a></li></ul><p>Thanks for reading and follow me on <a href="https://twitter.com/boboboa32">twitter</a> if you like this post ~</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17980b7e0fad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bobo-shone/use-vector-images-in-xcode-9-17980b7e0fad">Use Vector Images in Xcode 9</a> was originally published in <a href="https://medium.com/bobo-shone">Bobo Shone</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use Named Color in Xcode 9]]></title>
            <link>https://medium.com/bobo-shone/how-to-use-named-color-in-xcode-9-d7149d270a16?source=rss-2b8935d72271------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7149d270a16</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[colors]]></category>
            <category><![CDATA[xcode-9]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Bobo Shone]]></dc:creator>
            <pubDate>Wed, 11 Oct 2017 02:17:24 GMT</pubDate>
            <atom:updated>2017-10-11T02:18:58.711Z</atom:updated>
            <content:encoded><![CDATA[<p>Xcode 9 introduced a new feature in asset catalog “<a href="https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/WhatsNewXcode/xcode_9/xcode_9.html#//apple_ref/doc/uid/TP40004626-CH8-SW9">Named Color</a>”. Now you can add Color Set to asset catalog instead of using macro or UIColor class function to store colors.</p><p>You can add Color Set to Assets.xcassets, but you can also creating a new .xcassets file to store colors which you can manage and copy this fold to other project easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/1*bQgggg9O48E4aJYCTk0tjA.png" /></figure><p>Then you can add Color Set and set color value in the Attributes inspector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*bksVbeJC4ZmS2qKGoXcG4g.png" /></figure><p>Next time designer give you another black color value, you can tell him you already have one and ask him does he really want to add so many black color ?!</p><p>To use these colors, I create a UIColor extension.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca0a225d303427f85c7898d0dc26ff82/href">https://medium.com/media/ca0a225d303427f85c7898d0dc26ff82/href</a></iframe><p>Since Named Color is only supported on iOS 11, we have to use #available for a while.</p><p>In Interface builder, there is a Named Color section anywhere you need color.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*e09Af5X5RVSrfLNoRDYAQQ.png" /></figure><p>Thanks for reading~</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7149d270a16" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bobo-shone/how-to-use-named-color-in-xcode-9-d7149d270a16">How to use Named Color in Xcode 9</a> was originally published in <a href="https://medium.com/bobo-shone">Bobo Shone</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS Development]]></title>
            <link>https://medium.com/series/ios-development-46ec0c08f4fe?source=rss-2b8935d72271------2</link>
            <guid isPermaLink="false">https://medium.com/p/46ec0c08f4fe</guid>
            <dc:creator><![CDATA[Bobo Shone]]></dc:creator>
            <pubDate>Thu, 28 Sep 2017 01:49:22 GMT</pubDate>
            <atom:updated>2017-09-28T01:49:22.387Z</atom:updated>
            <content:encoded><![CDATA[<img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46ec0c08f4fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use Xcode server in Xcode 9]]></title>
            <link>https://medium.com/bobo-shone/how-to-use-xcode-server-in-xcode-9-93d6d2ee128f?source=rss-2b8935d72271------2</link>
            <guid isPermaLink="false">https://medium.com/p/93d6d2ee128f</guid>
            <category><![CDATA[ci]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[xcode-server]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[xcode-9]]></category>
            <dc:creator><![CDATA[Bobo Shone]]></dc:creator>
            <pubDate>Fri, 22 Sep 2017 03:11:22 GMT</pubDate>
            <atom:updated>2017-09-22T03:19:01.553Z</atom:updated>
            <content:encoded><![CDATA[<p>Since Xcode server has been built into Xcode 9, I have tried to use Xcode server to replace <a href="https://docs.fastlane.tools/">fastlane</a> which I use for CI now.</p><p><a href="https://developer.apple.com/videos/play/wwdc2017/403/">What&#39;s New in Signing for Xcode and Xcode Server - WWDC 2017 - Videos - Apple Developer</a></p><h3>Set up Xcode Server</h3><p>First download Xcode 9, you will find Xcode server in Xcode Preferences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*RChb9pNFsn55Op5QAzBCrw.png" /></figure><p>Click off/on button on the up-right corner to switch on Xcode server. Xcode will ask you which account you want to use for create the server. Create a new one is recommended.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*0H9tEXnojKUkKQUsNckbmA.png" /></figure><p>Then Xcode will create the server for you and you just need to log in the account. The server part is done, so easy.</p><h3>Set up client</h3><p>Now you have a Xcode server, so how can you make CI on it? Create a client account. Still in Xcode Preferences, switch to Accounts tab, click small plus icon on the left-bottom and choose Xcode Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*wa-xmkHgawW4uNzJYtkcWw.png" /></figure><p>Choose your server on the popup list and log in. Each team member can create a client account on his own mac, using guest account to log in if he don’t want to edit the server.</p><h3>Create Bot</h3><p>Finally we can create bot to run CI by click Product -&gt; Create Bot .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/175/1*1oiw3pYNtDiXJf7cNbS-cg.png" /></figure><p>Xcode will ask you to configure the Bot. Followed by info, git repo, build configuration, build schedule, signing, test device if you choose testing on build configuration, build arguments and triggers. You can edit the bot later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bPChCTr7XXa-LeKYxqbW-w.png" /></figure><p>You can check the bot in Xcode report navigator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*uc7RXI3VH1QqsdawdErf0w.png" /></figure><p>Right click on the Bot, you can create/edit/delete bot. You can view the bot on a webpage. You can trigger an integrate. Click integrate will show a report page on the right which tell you the status of the integrate, testing data and logs.</p><p>Apple has an old Xcode server guild, but it has some useful information if you have trouble.</p><p><a href="https://developer.apple.com/library/content/documentation/IDEs/Conceptual/xcode_guide-continuous_integration">Xcode Server and Continuous Integration Guide: About Continuous Integration in Xcode</a></p><h3>Distribution</h3><p>If you use other CI tools before, such as Jenkins, fastlane, you’ll find Xcode server is not that powerful. It’s ok if you use it for build project and testing, but the distribution is not good.</p><h4><strong>OTA</strong></h4><p>OTA is used to let QA testing app ipa or install Inhouse ipa. Xcode server has a build-in webpage which has OTA install. But you can only install ipa using “<em>server.local” </em>hostname which make OTA only work for LAN network.</p><h4>Triggers</h4><p>Another way is using triggers. After integrates succeed, upload ipa to testing platform like HockeyApp for testing or upload to testflight to be ready for submission.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jG2zMH4kquYcU9QekA4A6g.png" /></figure><p>For example, you can add post-integration scripts to upload ipa.</p><p>Use “ENV[‘XCS_ARCHIVE’]” pattern to get <a href="https://developer.apple.com/library/content/documentation/IDEs/Conceptual/xcode_guide-continuous_integration/EnvironmentVariableReference.html#//apple_ref/doc/uid/TP40013292-CH14-SW1">Environment Variable</a> in fastfile if you use fastlane.</p><p>But after several try, it has some weird problems, such as I can’t access dsym path using “ENV[‘XCS_ARCHIVE’]/dSYMs”.</p><p>Xcode server will export Archive if you check Archive option in Configuration when integration is successful. But sometimes the archive file can’t download, always fail and it’s not network problem.</p><h3>Conclusion</h3><p>Xcode server is easy to use but not powerful enough to replace Jenkins+fastlane. So now I use Xcode server for CI and testing while using fastlane for distribution. I’ll keep trying Xcode server if apple update Xcode.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93d6d2ee128f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bobo-shone/how-to-use-xcode-server-in-xcode-9-93d6d2ee128f">How to use Xcode server in Xcode 9</a> was originally published in <a href="https://medium.com/bobo-shone">Bobo Shone</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Xcode upload error “appex contains disallowed file ‘Frameworks’”]]></title>
            <link>https://medium.com/bobo-shone/xcode-upload-error-appex-contains-disallowed-file-frameworks-b64f76856b62?source=rss-2b8935d72271------2</link>
            <guid isPermaLink="false">https://medium.com/p/b64f76856b62</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Bobo Shone]]></dc:creator>
            <pubDate>Sat, 02 Sep 2017 15:17:59 GMT</pubDate>
            <atom:updated>2017-09-02T15:17:59.849Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iKcTbgGieIm2i_-ao2QlBQ.png" /></figure><p>If you occur the error above when upload bundle, you need to add a run script in container app’s target to delete frameworks folder in appex bundle.</p><pre>EMBEDDED_EXTENSION_PLUGIN_PATH=&quot;$TARGET_BUILD_DIR/$PLUGINS_FOLDER_PATH/&lt;widget bundle name&gt;.appex/Frameworks&quot;<br>if [[ -d &quot;$EMBEDDED_EXTENSION_PLUGIN_PATH&quot; ]]; then<br>    rm -fr &quot;$EMBEDDED_EXTENSION_PLUGIN_PATH&quot;<br>fi</pre><p>If you have multiple extension target, add one for each.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b64f76856b62" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bobo-shone/xcode-upload-error-appex-contains-disallowed-file-frameworks-b64f76856b62">Xcode upload error “appex contains disallowed file ‘Frameworks’”</a> was originally published in <a href="https://medium.com/bobo-shone">Bobo Shone</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to calculate WKWebView content height]]></title>
            <link>https://medium.com/bobo-shone/how-to-calculate-wkwebview-content-height-aec856e86d56?source=rss-2b8935d72271------2</link>
            <guid isPermaLink="false">https://medium.com/p/aec856e86d56</guid>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Bobo Shone]]></dc:creator>
            <pubDate>Sat, 02 Sep 2017 15:10:29 GMT</pubDate>
            <atom:updated>2017-09-02T15:10:29.320Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7fc955da2bb55b3a4ba20c2a54a1350/href">https://medium.com/media/c7fc955da2bb55b3a4ba20c2a54a1350/href</a></iframe><p>Sometimes KVO function will called infinitely, try js code below</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e7e67492ccc11d7c6211002614a23983/href">https://medium.com/media/e7e67492ccc11d7c6211002614a23983/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aec856e86d56" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bobo-shone/how-to-calculate-wkwebview-content-height-aec856e86d56">How to calculate WKWebView content height</a> was originally published in <a href="https://medium.com/bobo-shone">Bobo Shone</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dismiss bug of “Input file” tag in iOS WebView]]></title>
            <link>https://medium.com/bobo-shone/dismiss-bug-of-input-file-tag-in-ios-webview-658edf564d3c?source=rss-2b8935d72271------2</link>
            <guid isPermaLink="false">https://medium.com/p/658edf564d3c</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Bobo Shone]]></dc:creator>
            <pubDate>Sat, 02 Sep 2017 14:52:46 GMT</pubDate>
            <atom:updated>2017-09-02T14:52:46.052Z</atom:updated>
            <content:encoded><![CDATA[<p>When using &lt;input type=file&gt; html tag to open system photo library in WebView, there is a SDK bug will dismiss current presenting view controller. When you click the alert controller presented by system, dismiss function will be called twice for some reason(maybe it’s a SDK bug). So if the WebView or root view controller is presented instead of pushed, it’ll be dismissed while pushed by navigation is ok.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yff62QusyRAyPPolwPSotQ.png" /></figure><p>How to solve</p><ol><li>use push instead of present</li><li>use custom navigation to embed WebView and override dismiss method</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5e489d4d622499183e5e6e8fd8a6775/href">https://medium.com/media/e5e489d4d622499183e5e6e8fd8a6775/href</a></iframe><p>Read more</p><ul><li><a href="https://stackoverflow.com/questions/37380333/modal-view-closes-when-selecting-an-image-in-wkwebview-ios">Modal view closes when selecting an image in WkWebView iOS</a></li><li><a href="https://stackoverflow.com/questions/35999551/uiimagepickercontroller-view-is-not-in-the-window-hierarchy">UIImagePickerController &amp; view is not in the window hierarchy</a></li><li><a href="http://www.jianshu.com/p/284405e7313d">UIWebView/WKWebView对 标签拦截</a></li><li><a href="http://www.infocool.net/kb/IOS/201612/247812.html">找不到页面 - 信息酷 - 一个专门发布和收集异常处理方法 、经验 ；软件开发的思路和项目管理方法论的信息网站。</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=658edf564d3c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bobo-shone/dismiss-bug-of-input-file-tag-in-ios-webview-658edf564d3c">Dismiss bug of “Input file” tag in iOS WebView</a> was originally published in <a href="https://medium.com/bobo-shone">Bobo Shone</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to set timeout or http header in Moya]]></title>
            <link>https://medium.com/bobo-shone/how-to-set-timeout-or-http-header-in-moya-a5f6b1cb8ef2?source=rss-2b8935d72271------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5f6b1cb8ef2</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Bobo Shone]]></dc:creator>
            <pubDate>Sat, 02 Sep 2017 08:18:42 GMT</pubDate>
            <atom:updated>2017-09-02T08:18:42.897Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c5d2df984984250afbd7151eb47ea83/href">https://medium.com/media/5c5d2df984984250afbd7151eb47ea83/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5f6b1cb8ef2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bobo-shone/how-to-set-timeout-or-http-header-in-moya-a5f6b1cb8ef2">How to set timeout or http header in Moya</a> was originally published in <a href="https://medium.com/bobo-shone">Bobo Shone</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use Moya to download file]]></title>
            <link>https://medium.com/bobo-shone/how-to-use-moya-to-download-file-97dfc7fac8f8?source=rss-2b8935d72271------2</link>
            <guid isPermaLink="false">https://medium.com/p/97dfc7fac8f8</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Bobo Shone]]></dc:creator>
            <pubDate>Sat, 02 Sep 2017 08:13:42 GMT</pubDate>
            <atom:updated>2017-09-02T08:15:18.940Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/93f9ad3457a74f9492e4b14e89608aa1/href">https://medium.com/media/93f9ad3457a74f9492e4b14e89608aa1/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97dfc7fac8f8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bobo-shone/how-to-use-moya-to-download-file-97dfc7fac8f8">How to use Moya to download file</a> was originally published in <a href="https://medium.com/bobo-shone">Bobo Shone</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Terminal proxy with Shadowsocks]]></title>
            <link>https://medium.com/bobo-shone/%E8%AE%A9terminal%E4%BD%BF%E7%94%A8shadowsocks%E4%BB%A3%E7%90%86-701c2608bcac?source=rss-2b8935d72271------2</link>
            <guid isPermaLink="false">https://medium.com/p/701c2608bcac</guid>
            <category><![CDATA[mac-os-x]]></category>
            <category><![CDATA[shadowsocks]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Bobo Shone]]></dc:creator>
            <pubDate>Fri, 25 Aug 2017 00:06:39 GMT</pubDate>
            <atom:updated>2017-09-02T08:11:34.109Z</atom:updated>
            <content:encoded><![CDATA[<p>Install <a href="http://proxychains.sourceforge.net/">proxychains</a></p><pre>brew install proxychains-ng</pre><p>Create config file ~/.proxychains/proxychains.conf</p><pre>mkdir ~/.proxychains <br>vim ~/.proxychains/proxychains.conf</pre><p>Copy text below to config file</p><pre>strict_chain <br>proxy_dns<br>remote_dns_subnet 224<br>tcp_read_time_out 15000 <br>tcp_connect_time_out 8000 <br>localnet 127.0.0.0/255.0.0.0 <br>quiet_mode </pre><pre>[ProxyList] <br>socks5 127.0.0.1 1080</pre><p>Open Shadowsocks global mode first, then</p><pre>proxychains4 curl https://www.twitter.com/<br>proxychains4 git push origin master<br><br>// or<br><br>proxychains4 bash<br>curl https://www.twitter.com/<br>git push origin master</pre><pre>// test IP <br>curl ip.gs</pre><p>Mac OS 10.11 need to turn off <a href="http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x/">System Integrity Protection</a></p><pre>1. Reboot, then Command + R to enter recovery mode <br>2. choose Terminal from left-top menu<br>3. csrutil disable; reboot</pre><pre>// check status<br>csrutil status <br>// this means turned off <br>System Integrity Protection status: disabled.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=701c2608bcac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bobo-shone/%E8%AE%A9terminal%E4%BD%BF%E7%94%A8shadowsocks%E4%BB%A3%E7%90%86-701c2608bcac">Terminal proxy with Shadowsocks</a> was originally published in <a href="https://medium.com/bobo-shone">Bobo Shone</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>