...
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 built Ice Touch in debug mode (the default), you must ensure that the architecture used to build the tests or demos is the same architecture as the one used to build the iPhone "Test Suite" applicationIce Touch. To build Ice Touch and the tests with a specific architecture, you can set CXXARCHFLAGS either in config/Make.rules
or on the make command line:
...
Available architectures are armv7
, armv7s
and arm64
. The architecture used to build the "Test Suite" application in or the Xcode project hello demo is specified with the "Architectures" build setting , it in the Xcode project. It must match the architecture used to build Ice Touch.
...
Tip |
---|
Make sure you build the appropriate SDK before opening the corresponding demo or test projects in Xcode. |
If you build Ice Touch in debug mode (the default), you must ensure that the architecture used to build the tests and demos is the same architecture as the one used to build Ice Touch. To build Ice Touch with a specific architecture, you can set ARCHFLAGS in config/Make.rules
or on the make command line:
$ make COMPILE_FOR_IPHONE=yes ARCHFLAGS="-arch arm64
"
Available architectures are armv7
, armv7s
and arm64
. The architecture used to build the tests or demos is specified with the "Architectures" build setting in the Xcode project. It must match the architecture used to build Ice Touch.
After a successful build, you can run the test suite. For an OS X or Cocoa build, run:
...