Versions Compared

Key

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

...

For Cocoa and iPhone applications,  you you must add the appropriate directory to the Additional 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

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 plugin plug-in build options.

Ztop

Using the Objective-C 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:

...

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 -libc++ 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 include directory. A typical compile command would look like this:

...

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 libIceObjC-libc++. A typical link command would look like this:

...