<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kouki_dan</author_name>
  <author_url>https://blog.hatena.ne.jp/kouki_dan/</author_url>
  <blog_title>Lento con forza</blog_title>
  <blog_url>https://kouki.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>XcodeでProjectを作った時にデフォルトで作られるテストケースでのユニットテストで、少し（だいぶ）はまったのでメモして起きます。 Testsファイルから自作クラスが見えない？ Testsファイルから、自作クラスをインスタンス化しようとすると このように、クラスが見えなくインスタンス化できない状態になってしまいました。 Targetがプロダクト用とテスト用で別だからできないのかなぁ。と思いつつ、不便だなぁ。とずっと思ってたんですが・・。 解決策 テストしたい対象のswiftファイルのTargetsに、~~Testsも追加してあげれば解決します。 ファイルを作成する時に、ここのTarget…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkouki.hatenadiary.com%2Fentry%2F2014%2F11%2F15%2F095746&quot; title=&quot;Swiftでのユニットテストでクラスが見えない問題 - Lento con forza&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>http://cdn-ak.f.st-hatena.com/images/fotolife/k/kouki_dan/20141115/20141115094605.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-11-15 09:57:46</published>
  <title>Swiftでのユニットテストでクラスが見えない問題</title>
  <type>rich</type>
  <url>https://kouki.hatenadiary.com/entry/2014/11/15/095746</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
