Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>IPhone does not allow loading dynamic libraries. The external library/framework you are using must be build as a static library and compiled into your app during build time. </p> <p>In order to make that happen first you need to create a static library version of GDATA:</p> <ul> <li><p>Add a new target to the GData project (say GDataIPhoneLibrary) </p> <ul> <li>You do this by right-clicking Target and selecting "Add New Target". In the Dialog select the static library template from the IPhoneOS - Cocoa Touch section.</li> </ul></li> <li><p>Then you need to drag the source .m files to the Compile Sources section of the target. (Make sure not to drag the .h files, otherwise you will get warnings.) Also if you are just building for the Picasa then the file under Command and Photos groups should be sufficient. Also do not add the unit tests and the test tool groups.</p></li> <li><p>Next go to the Frameworks and Libraries group under the project and add the Foundation framework which is the necessary framework for Cocoa Touch. When you are adding this make sure to only check your newly created target for this to be used. (You don't want to mess up the Mac version of GData)</p></li> <li><p>Now under the Targets, select the GDataIPhoneLibrary you created and click on the (i) button (or just double click it)</p></li> <li><p>Under the Build tab search for "header" and once you locate the "Header Search Paths" add the following (for libxml2) as the header path </p></li> </ul> <p>/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/include/libxml2</p> <ul> <li><p>Now you close the dialog.</p></li> <li><p>Select your Active Target to be GDataIPhoneLibrary</p></li> <li><p>Set your ActiveSDK to Project-> SetActiveSDK -> Simulator - IPhone OS 2.1</p></li> <li><p>Now you are ready to go -> just hit build and you will have the default libGDataIPhoneLibrary.a file.</p></li> </ul> <p>Now you can add this static library to your IPhone application:</p> <ul> <li><p>Go to your own application project and select the target (you probably have one) and double click it to open the dialog.</p></li> <li><p>In the Build tab search for "library" and once you find "Library Search Paths" add the path to that library that you just built in the previous step.</p></li> <li><p>Then add "-lGDataIPhoneLibrary" (omitting lib prefix and .a extension) to the "Other Linker Flags" option (which you can find by searching linker in the search box.</p></li> </ul> <p>Now this should hopefully build. Hope this works for you.</p> <p>Cheers, Kerem</p>
 

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