-
Notifications
You must be signed in to change notification settings - Fork 70
Description
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!