Skip to content

Adding tapku to your project in xcode 4

blurboy1985 edited this page Jun 12, 2012 · 6 revisions

∙ Clone the TapkuLibrary git repository: git clone git://github.com/devinross/tapkulibrary.git. Make sure you store the repository in a permanent place because Xcode will need to reference the files every time you compile your project.

∙ Locate the src/TapkuLibrary.xcodeproj and src/TapkuLibrary.bundle and add these to your XCode project (Figure 1). (use ‘Add files to project’ from ‘File’ menu instead of dragging and dropping, to prevent crash when adding target dependency in next step. c.f. Xcode 4 bug)

image

Figure 1

∙ Select your main Xcode project from the sidebar in Xcode and then select the project target. Select the Build Phases tab. Under the Target Dependencies group, click the plus button, select TapkuLibrary from the menu, and choose Add. (Figure 2)

∙ Under the Link Binary With Libraries group, click the plus button, select libTapkuLibrary.a from the menu, and choose Add. Also add MapKit and QuartzCore. (Figure 2)

image

Figure 2

∙ Choose the Build Settings tab. Make sure All in the top left of the bar under the tabs. Add the path to the src folder to Header Search Path (do not click the Recursive checkbox). Add -all_load -ObjC to Other Linker Flags.

Clone this wiki locally