Versions Compared

Key

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

...

For the iPhone or iPhone simulator, the test suite runs within an iPhone application named "Test Suite". You can run it from the Xcode project located in the cpp/test/iPhone/container directory. Note that the C++ tests must be run from Xcode; they won't run if you launch the Test Suite application from the device directly.

If you build Ice Touch in debug mode (the default), you must ensure that the architecture used to build the tests is the same architecture as the one used to build the iPhone "Test Suite" application. To build Ice Touch and the tests with a specific architecture, you can set CXXARCHFLAGS either on the make command line or in config/Make.rules:

$ make COMPILE_FOR_IPHONE=yes CXXARCHFLAGS="-arch arm64"

Available architectures are armv7, armv7s and arm64The architecture used to build the "Test Suite" application in the Xcode project is specified with the "Architectures" build setting, it must match the architecture used to build Ice Touch.

To build for a different target, you first need to clean the current build using the clean command. For example, if you built for Cocoa, run

...