---
slug: "iOSアプリにtapkulibraryを組み込んだメモ"
title: "iOSアプリに tapkulibrary を組み込んだメモ"
description: "\n\n\nhttps://github.com/devinross/tapkulibrary を自分のプロジェクトに入れたメモ。"
url: "https://www.ytyng.com/blog/iOSアプリにtapkulibraryを組み込んだメモ"
publish_date: "2014-04-23T03:52:19Z"
created: "2014-04-23T03:52:19Z"
updated: "2026-02-27T10:44:44.499Z"
categories: ["iOS"]
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/0d3b67b02ef44625ab83b7eeae6233dd.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "ja"
---

# iOSアプリに tapkulibrary を組み込んだメモ

<div class="document">


<p><a class="reference external" href="https://github.com/devinross/tapkulibrary">https://github.com/devinross/tapkulibrary</a> を自分のプロジェクトに入れたメモ。</p>
<p>カレンダービューが使いたくて入れた。</p>
<p>これは、便利な既存クラス拡張カテゴリや、ビューの詰め合わせセット。</p>
<p>公式使い方は</p>
<p><a class="reference external" href="https://github.com/devinross/tapkulibrary/wiki/Adding-Tapku-to-Your-Project-in-XCode-4">https://github.com/devinross/tapkulibrary/wiki/Adding-Tapku-to-Your-Project-in-XCode-4</a></p>
<p>ここ</p>
<div class="section" id="id1">
<h3>1.</h3>
<p>適当な場所に
git clone git://github.com/devinross/tapkulibrary.git する。</p>
</div>
<div class="section" id="id2">
<h3>2.</h3>
<p>自分のプロジェクトに、TapkuLibrary.xcodeproj を(Finder経由で)ドロップして入れる。</p>
<p>他の Xcode で TapkuLibrary.xcodeproj を開いていると、プロジェクトがロックされて開けないので、</p>
<p>他の Xcode はすべて終了しておく。(これがわからなくて結構詰まった)</p>
<p>ついでに、TapkuLibrary.bundle も入れておく。</p>
</div>
<div class="section" id="id3">
<h3>3.</h3>
<p>Xcodeの自分のプロジェクトの水色アイコンを選択し、TARGETS からビルドターゲットを選択、Build Phases タブをクリック。</p>
<p>Target Dependencies の + をクリックし、TapkuLibrary をクリックして入れる</p>
</div>
<div class="section" id="id4">
<h3>4.</h3>
<p>下の Link Binary With Libraries を開き、+ をクリックし、 libTapkuLibrary.a を入れる</p>
</div>
<div class="section" id="id5">
<h3>5.</h3>
<p>(ここ自信ない)</p>
<p>Build Settings タブ &gt; Search Paths グループ &gt; Header Search Path に、TopkuLibrary.h が入っている上のディレクトリを追加する。</p>
<p>絶対パスで指定した。</p>
<p>例: /Users/ytyng/workspace/ios/frameworks/tapkulibrary/src</p>
<p>なんかこれはあまりスマートな気がしないので、他の解決方法があるかも</p>
<p>これで、</p>
<pre class="literal-block">#import &lt;TapkuLibrary/TapkuLibrary.h&gt;
</pre>
<p>ができるようになる。</p>
</div>
<div class="section" id="id6">
<h3>6.</h3>
<p>Build Settings タブ &gt; Linking グループ &gt; Other Linker Flags</p>
<p>-ObjC を追加。</p>
<p>入れないと、カテゴリがロードされず、ビューが動かない。</p>
</div>
</div>
