To distribute your project as an executable, your have to go to : Product → Archive → Click on Distribute → Save Built Products → Save
Your executable will be available in the new created folder.
To distribute this executable without installing ITK and VTK, you may add to the executable folder the needed libraries (
The executable can be called by the command if you are in the folder of your program :
If you don’t want to add ”./” before the name of your program, you need to add the path of the program’s folder in the environment variable $PATH :
This path is only valid if you place your program in /Applications. To make definitive changes to PATH, add this line to
How to use XCode toolchain as a non-admin user?#
Usually when you use XCode as a non-admin user, it ask you for admin login and password for building your project in debugging mode. This is required to enable the Developer Tools. To allow a non-admin user to use debugging mode on XCode, you may enter in a Terminal the following command :
sudo dscl . append /Groups/_developer GroupMembership <username>
Then, you can provide your login and password to build your project. You have to provide them just once per session.