How to add CUSLayout to your project
JJMM opened this issue · 7 comments
The easiest way to do add CUSLayout to your existing project is to add it as a git SubModule, and then import the project as part of yours:
In Xcode:
1、open YOUR existing project (or create a new one) drag and drop the CUSLayout.xcodeproj file downloaded from github previously from Finder to your project (either root or under Frameworks)
2、In YOUR project configuration: in the Build Phases, Add CUSLayout (the lib, not the example app) as a Target Dependency in the Link Binary With Libraries section, add the libCUSLayout.a library
3、In YOUR Prefix.pch file, add #import <CUSLayout/CUSLayout.h>
4、 In YOUR project configuration, on the “Build Settings” tab, locate the “User Header Search Paths” setting, and set the Release value to "${PROJECT_DIR}/CUSLayout" (including quotes!) and check the “Recursive” check box. The Debug value should already be set, but if it’s not, change that as well.
5、Also locate the “Always Search User Paths” value and set it to YES. Finally, find the “Other Linker Flags” option, and add the value -ObjC (no quotes).
That should be all there is. Change the build target to “iOS Device” , and run Product->Archive. Good luck!
Could you get CusLayout supporting cocoapods? Great library!
Of course.I will support later.
libCUSLayout.a library is not available in project
can you please mail me libCUSLayout.a library cloudjanak@gmail.com
@cloudjanak
Why?
It work very well.
I had sent the library to you mail.
it gives linker error
On Tue, Jun 10, 2014 at 8:07 PM, zhangyu notifications@github.com wrote:
@cloudjanak https://github.com/cloudjanak
Why?
It work very well.
I had sent the library to you mail.—
Reply to this email directly or view it on GitHub
#1 (comment).