From http://www.cnblogs.com/wwwkhd/archive/2011/01/24/1943441.html
I,UseThree20Create a new project
1,DownloadThree20Source code
2, Open the terminal, To Templates/ Directory, and then enter the following command :
Bash installtemplates3.2.5.command
After the command is executed,Three20Is added toXcode.
3, When creating a project, you can New project "Dialog box. Three20 . Select a template to create a new template. Three20 Project. Note that the newly created project must be Three20 In the same directory.
4,OpenThree20Project fileLibthree20.aOtherwise, a compilation error occurs.
II,AddThree20Library.
1,Open to joinThree20Project, and then enter the Directory/Three20/src/three20/.ThreeappsxcodeprojProject File, drag this file to open the projectFrameworkFile, the following dialog box is displayed, and you can select according to the figure below:
2,Three20UsedQuartzcore, So you must addQuartzcore.
In the displayed dialog box, selectQuartzcore:
3,ThenThree20First click AddFrameworkGroupThree20, The following file is displayed in the window on the right. In the box on the right, selectLibthree20.a.
NextTargetsSelect the compiledProgram, Call upInfoWindow. SelectGeneralTab. Then joinDirect Dependencies,:
4,SetLinkAndHead search path
Open the projectInfoPanel. FindLinkInOther linker flagsOption, add-ObjcAnd-All_load,:
set head search path , find head search paths in search path , set the value to .. /three20/build/products/three20 . .. / indicates the directory where three20 is located, for example, in my machine, three20 is placed in the document. Set the path to /users/wangwei/document/three20/build/products/three20 . In this way, the settings are basically complete.
If the following error occurs during compilation:File/users/wangwei/documents/three20/src/three20/http://www.cnblogs.com/Build/Products/Debug-iphonesimulator/libThree20.a depends on itself.This target might include its own product.
OpenThreeappsxcodeproj. Click the project nameThree20, CancelLibthree20.a.