Using library for MacOS applications
Using MacOS framework
To use the frameworks in your projects for MacOS, you need to do the following:
- Install the library according to the instructions in Installation and Compilation Guide.
- Add the appropriate version of framework in your project.
- Create for Target New Copy Files Build Phase, select for phase type "Frameworks" and add into phase our framework.
- Select the appropriate settings (if You are using the MacOS previously version 10.8) for target patameters Architectures, Base SDK, Valid Architectures, C/C++ Compiler Version and Mac OS X Deployment Target.
- Disable the documentation warnings by setting the option Documentation Comments to the value YES.
- Disable the ARC by setting the option Objective-C Automatic Reference Counting to the value NO.
- Include directive #import <scl/scl.h> in your source code.
Using MacOS static library
For using the static libraries in your projects for MacOS, you need to do the following:
- Install the library according to the instructions in Installation and Compilation Guide.
- Add the appropriate version of static library to your project.
- Add the Cocoa framework to your project.
- Add value "/Developer/include" into target parameter Header Search Path.
- Select the appropriate settings (if you want to using the library for projects for MacOS version earler 10.8) for target patameters Architectures, Base SDK, Valid Architectures, C/C++ Compiler Version and Mac OS X Deployment Target.
- Disable the documentation warnings by setting the option Documentation Comments to the value YES.
- Disable the ARC by setting the option Objective-C Automatic Reference Counting to the value NO.
- Include directive #import <scl/scl.h> in your source code.
Using library for iOS applications
To use the library in your projects for iOS, you need to do the following:
- Install the library according to the instructions in Installation and Compilation Guide.
- Add the appropriate version of static library in your project.
- Add value "-DIOS_TARGET -ObjC" into the target parameter Other C Flags.
- Add value "-ObjC -all_load" into the target parameter Other Linker Flags.
- Add value "/Developer/Include" into the target parameter Header Search Path.
- Disable the documentation warnings by setting the option Documentation Comments to the value YES.
- Disable the ARC by setting the option Objective-C Automatic Reference Counting to the value NO.
- Include directive #import <scl/scl.h> in your source code.
When compiling, using the subsequent establishment of the version you have SDK.