Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The binary distribution was compiled on OS X 10.8 9 using Xcode 5.01. 2. The binaries in this distribution are fat binaries with support for both Intel 32-bit and Intel 64-bit architectures on OS X and support for ARMv7, ARMv7s and ARM64 on iOS.

The binaries are installed in the the /Library/Developer/IceTouch-1.3.1 directory2 directory.

Ztop

Setting up your OS X environment to use Ice Touch

...

For Cocoa and iPhone applications, you must add the appropriate directory to the Additional SDKs SDKs setting in your Xcode project:

Objective-C SDK

/Library/Developer/IceTouch-1.3/SDKs/ObjC/$(PLATFORM_NAME).sdk

C++ SDK

/Library/Developer/IceTouch-1.3/SDKs/Cpp/$(PLATFORM_NAME).sdk

For Xcode  5.1 iOS and Cocoa applications you also need to update the project setting "Header Search Paths" to include the Ice Touch SDK include directory.

Objective-C SDK

/Library/Developer/IceTouch-1.3/SDKs/ObjC/$(PLATFORM_NAME).sdk/usr/local/include

C++ SDK

/Library/Developer/IceTouch-1.3/SDKs/Cpp/$(PLATFORM_NAME).sdk/usr/local/include

In addition, when creating a new iPhone Xcode project, you must set the Code Signing Resource Rules Path to:

$(SDKROOT)/ResourceRules.plist

You must also add the following to the Frameworks folder:

CFNetwork.framework
Security.framework
Foundation.framework

When using the Objective-C SDK you must also add the following to the Frameworks folder:

ExternalAccessory.framework

See the the Xcode Plug-in documentation for  for additional information on the plug-in build options.

Ztop

...

Wiki Markup
{zcode}
$ export PATH=<Ice Touch installation directory>/Library/Developer/IceTouch-1.3/bin:$PATH
{zcode}

The Ice Touch binary distribution includes two sets of Objective-C libraries built with two different C++ run times. These libraries are installed in in <Ice Touch installation directory>/lib. The libraries with the the -libc++ suffix  suffix use LLVM libc++ (e.g., libIceObjC-libc++.dylib), while the libraries with no suffix use libstdc++ (libIceObjC.dylib). 

...

Wiki Markup
{zcode}
$ c++ -I <Ice Touch installation directory>/Library/Developer/IceTouch-1.3/include -c -pthread myprogram.cpp
{zcode}

When linking a program you must pass the Ice Touch library directory with the -L option and set the program run path using the -rpath linker option. Furthermore, an Objective-C program needs to link with at least libIceObjC or  or libIceObjC-libc++. A typical link command would look like this:

Wiki Markup
{zcode}
$ c++ -o myprogram myprogram.o -Wl,-rpath,<Ice Touch installation directory>/Library/Developer/IceTouch-1.3/lib -L<Ice Touch installation directory>-L/Library/Developer/IceTouch-1.3/lib -lIceObjC -framework Foundation
{zcode}

...

Sample programs are provided in a separate archive, which can be downloaded from the ZeroC web site.

Ztop