Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to add the libsqlite3.0.dylib in MonoTouch Binding Project?
    primarykey
    data
    text
    <p>I want to integrate the <a href="http://www.aviary.com/ios" rel="nofollow">Aviary SDK</a> Objective-C library into Monotouch project. I use 'Monotouch Binding Project' template for this. So I have created the API Definition file and define LinkWith Attributes.</p> <pre><code>[assembly: LinkWith ("libAviarySDK.a", LinkTarget = LinkTarget.ArmV6 | LinkTarget.ArmV7 | LinkTarget.Simulator, ForceLoad = true, IsCxx = true, Frameworks="CoreGraphics QuartzCore Accelerate StoreKit CoreData", LinkerFlags="-ObjC -all_load -fobjc-arc")] </code></pre> <p>It requires the following libraries:</p> <ul> <li>Foundation.framework</li> <li>UIKit.framework</li> <li>CoreGraphics.framework</li> <li>QuartzCore.framework</li> <li>Accelerate.framework</li> <li>StoreKit.framework</li> <li>libz.1.2.5.dylib</li> <li><em><strong>libsqlite3.0.dylib</em></strong></li> <li>CoreData.framework </li> </ul> <p>All these frameworks are linked without problems except the libsqlite3.0.dylib</p> <p>The problem that I am encountering, though, is that the library depends on <strong>libsqlite3.0.dylib</strong> and I do not know how to include these frameworks in my MonoTouch application.</p> <p>In a result - compiler returns the following errors:</p> <blockquote> <p>/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib -u _catch_exception_raise -force_load /var/folders/2n/ql7wkht57cg8wfgzz0cr9trm0000gn/T/tmp31d0b99b.tmp/libAviarySDK.a -ObjC -all_load -fobjc-arc</p> <p>Undefined symbols for architecture i386:</p> <p>"_sqlite3_open", referenced from: -[AFLocalyticsDatabase init] in libAviarySDK.a(AFLocalyticsDatabase.o)</p> <p>"_sqlite3_busy_timeout", referenced from: -[AFLocalyticsDatabase init] in libAviarySDK.a(AFLocalyticsDatabase.o)</p> <p>"_sqlite3_exec", referenced from: -[AFLocalyticsDatabase beginTransaction:] in libAviarySDK.a(AFLocalyticsDatabase.o)</p> <p><strong>* <em>And many other same references</em> *</strong></p> <p>ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status</p> <p>mtouch exited with code 1</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload