iPhone外部ライブラリ のバックアップの現在との差分(No.1) - アールメカブ

アールメカブ


iPhone外部ライブラリ のバックアップの現在との差分(No.1)


  • 追加された行はこの色です。
  • 削除された行はこの色です。
[[iPhone_Dev]]

外部ライブラリのリンク.

mac には libsqlite3.dylib があるので,取り込もうと思うのだが,
「正式な方法」がわからない.ググると,ドラッグアンドドロップで取り込めなんてあるのだが,やはりターゲットの[情報]を開いて,[一般]タブから,一番下の[+]を押して取り込むのが正式なのだろうか?
もっとも,結果は同じ気がするが...
「正式な方法」がわからない.ググると,ドラッグアンドドロップで取り込めとか,以下の英文にあるように,Framework を右クリックで,ファイルを選択しろ,なんてあるのだが,やはりターゲットの[情報]を開いて,[一般]タブから,一番下の[+]を押して取り込むのが正式なのだろうか?

ところが,実際にやってみると,
[グループとファイル]コンテキストの [Framework]フォルダを右クリックし,[既存のフレームワーク] で HD の Developer 以下を丁寧にたどってライブラリを指定しないと,_splite3_open などへのシンボルが解決できないと出る. 

Now that we have created all of our views and classes it is time to start the real grunt work.

First off we need to include the SQLite libraries so our application can utilise them. To do this you will need to right click on the “Frameworks” folder in the left hand pane, then click on “Add > Existing Frameworks…”, then navigate to “/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/usr/lib/” and double click the “libsqlite3.0.dylib” file. A popup will appear, just click “Add” and the library will be added to your project.

We also need to add our database we created earlier to the Resources folder, to do this simply right click on the “Resources” folder, click “Add > Existing Files…”, navigate to the location you created the database in then double click on the AnimalDatabase.sql file. Another popup will appear, just click add.



ヘッダの方も,正式には?ターゲットの設定ウィンドウ[ビルド]タブで[ヘッダ検索パス] を指定するのか.