With XCode 4.3 packagemaker has been moved from xcode package to 'Auxiliary XCode tools'. Now packagemaker is a regular application in /Application folder. Store the old and the new location and check if one of them present in the system.
…e to be restarted
When a module is built for final distribution it is called with --release flag. When this flag is enabled a module usually do stuff like purge local changes and set correct build flags. Remove hardcoded SDK dependency from XCode files. XCode should use the default one. When we build module for distribution we just set target SDK via command line arguments.