Using library for MacOS X 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.
- Add the directory /Developer/Frameworks/MacOS into the option Framework Search Paths
- Into the linker option Other Linker Flags add value -ObjC -all_load
- 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 or add a value -lscl into the linker option Other Linker Flags.
- 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.
- Add the directory /Developer/Frameworks/MacOS into the linker option Library Search Path.
- Add a value -ObjC -all_load into the linker option Other Linker Flags.
- 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 value "-DIOS_TARGET" into the target parameter Other C Flags.
- Add directory /Developer/Include into the target parameter Header Search Paths.
- Add path /Developer/Frameworks/iOS into the target parameter Library Search Paths.
- Add value "-ObjC -all_load -lscl" into the target parameter Other Linker Flags.
- 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.