Using library for Mac OS applications
To use the frameworks in your projects for MacOS, you need to do the following:
- Install the library according to the instructions in Installing and compiling instructions.
- 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 for target patameters Architectures, Base SDK, Valid Architectures, C/C++ Compiler Version and Mac OS X Deployment Target.
- Include directive #import <scl/scl.h> in your source code.
To use the static libraries in your projects for MacOS, you need to do the following:
- Install the library according to the instructions in Installing and compiling instructions.
- 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 for target patameters Architectures, Base SDK, Valid Architectures, C/C++ Compiler Version and Mac OS X Deployment Target.
- Include directive #import <scl/scl.h> in your source code.
To compile the application under MacOS X 10.4 Tiger by using the XCode Tools 3.2.5 is recommended to put the following parameters:
- Framework - /Developer/Frameworks/MacOS/10.4
- Architectures - 32-bit Intel (i386)
- Base SDK - Mac OS X 10.4
- Valid Architectires - i386
- C/C++ Compiler Version - GCC 4.0
- Mac OS X Deployment Target - Mac OS X 10.4
To compile the application under MacOS X 10.4 Tiger by using the Xcode 4 or later is recommended to put the following parameters:
- Framework - /Developer/Frameworks/MacOS/10.4
- Architectures - 32-bit Intel (i386)
- Base SDK - Latest (SDK 10.10 recommended)
- Valid Architectires - i386
- C/C++ Compiler Version - Latest (Apple LLVM Compiler recommended)
- Mac OS X Deployment Target - Mac OS X 10.4
I draw attention also to the fact that in XCode Tools 3.2.x can be difficult with a template for applications because it applies to the 3.2.x template based on the Objective-C 2.0 protocols and properties, while the GCC 4.0/SDK 10.4 do not support them. I recommended either using XCode Tools 3.1.x or take out applications template from XCode Tools 3.1.x. Well, aither alter the template so as not to use protocols and properties.
To compile the application under Mac OS 10.6 Snow Leopard by using the XCode Tools 3.2.5 is recommended to put the following parameters:
- Framework - /Developer/Frameworks/MacOS/10.6
- Architectures - Standard (32/64-bit Universal)
- Base SDK - Mac OS X 10.6
- Valid Architectires - i386 x86_64
- C/C++ Compiler Version - GCC 4.2
- Mac OS X Deployment Target - Mac OS X 10.6
To compile the application under Mac OS 10.6 Snow Leopard by using the Xcode 4 or later is recommended to put the following parameters:
- Framework - /Developer/Frameworks/MacOS/10.6
- Architectures - Universal (32/64-bit Intel)
- Base SDK - Latest (SDK 10.10 recommended)
- Valid Architectires - i386 x86_64
- C/C++ Compiler Version - Latest (Apple LLVM Compiler recommended)
- Mac OS X Deployment Target - Mac OS X 10.6
To compile the application under Mac OS 10.7 Lion and later by using the Xcode 4 or later is recommended to put the following parameters:
- Framework - /Developer/Frameworks/MacOS
- Architectures - Standard (64-bit Intel)
- Base SDK - Latest (SDK 10.10 recommended)
- Valid Architectires - x86_64
- C/C++ Compiler Version - Latest (Apple LLVM Compiler recommended)
- Mac OS X Deployment Target - Mac OS X 10.7
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 Installing and compiling instructions.
- Add the appropriate version of static library in your project.
- Add value "-DIOS_TARGET -ObjC" into target parameter Other C Flags.
- Add value "-ObjC -all_load" into target parameter Other Linker Flags.
- Add value "/Developer/Include" into target parameter Header Search Path.
- Include directive #import <scl/scl.h> in your source code.
When compiling, using the subsequent establishment of the version you have SDK.
Testing library for iOS 5.0 and later I have not yet taken place. If you do this, let me know at samond@yandex.ru.