How to Build and Run KalTest Example in Xcode
1) Create a Xcode project using "cmake"
$ cd /Users/fujiik/Sandbox/tpc/KalTest/trunk
$ cd build
$ cmake -G Xcode -DILCUTIL_DIR=/proj/soft/ilcsoft/v01-12-01/ilcutil/v00-02 -DROOT_DIR=$ROOTSYS ..
2) Open the project with Xcode and build
Select "ALL_BUILD" and "My Mac 32-bit" from the target bar in the top side bar and press the "Run" button to build the package.
3) Test run
Select target, say "hybrid", and My Mac 32-bit from the top side bar.
From the "Product" pull-down menu from the Mac's top menu bar and select "Edit Scheme ..".
You will then get a scheme editor window. Choose "Run hybrid Debug"/"Run hybrid".
Set command line "Arguments Passed On Launch" by pressing "+" button and set, say "10" for 10 events.
Set "Environment Variables" by pressing "+" button and set ROOTSYS and its value.
Do the same for DYLD_LIBRARY_PATH.
Then hit the "Run" button on the top side bar of the Xcode window.
You will get an event displayed in a simple event display window.
You have console where you can interact with "hybrid".