Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

This page provides important information for users of the Ice Touch binary distribution. You can obtain this distribution at the ZeroC web site.

On this page:

Table of Contents
maxLevel2

...

The binary distribution was compiled on OS X 10.8 9 using Xcode 5.0.1. 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 directory3 directory.

Ztop

Setting up your OS X environment to use Ice Touch

...

For Cocoa and iPhone applications,  you 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

 

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 Xcode Plug-in documentation for additional information on the plug-in build options.

Ztop

Using the

...

Ice Touch command-

...

line SDK

In order to use the slice2cpp or slice2objc Slice translators included with the Ice Touch distribution, you need to add the location of the Ice Touch binaries to your PATH as shown in the bash command below:

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++ runtimesrun 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.: libIceObjClibIceObjC-libc++.dylib), while the libraries with no suffix use libstdc++ (libIceObjC-libc++.dylib). 

When compiling Ice for C++ programs, you must pass the -pthread option and a -I option specifying the Ice Touch include directory. A typical compile command would look like this:

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