<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>willnet</author_name>
  <author_url>https://blog.hatena.ne.jp/willnet/</author_url>
  <blog_title>おもしろwebサービス開発日記</blog_title>
  <blog_url>https://blog.willnet.in/</blog_url>
  <categories>
  </categories>
  <description>iOS アプリ開発をしている時に、web上のサーバではなく、ローカルマシンのサーバと通信させたくなる状況はよくあるかと思います。僕はまず次のようなコードを書いて、さらにコンパイラ用のフラグに -D DEBUG と設定することで対応しました。 #if DEBUG let host = &quot;http://localhost:3000/&quot; #else let host = &quot;https://production.example.com/&quot; #endif この Qiita の記事を参考にさせていただきました。 Swift での #ifdef DEBUG のやり方 - Qiita これで大丈夫！…ではあり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.willnet.in%2Fentry%2F2016%2F03%2F14%2F205050&quot; title=&quot;iosアプリ開発時に実機とローカルサーバを通信させるための快適な設定方法について - おもしろwebサービス開発日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-03-14 20:50:50</published>
  <title>iosアプリ開発時に実機とローカルサーバを通信させるための快適な設定方法について</title>
  <type>rich</type>
  <url>https://blog.willnet.in/entry/2016/03/14/205050</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
