Changed 'Debug' scheme to use the 'AdHocDistribution' build configuration when Archiving.
Added DEBUG preprocessor macro to AdHocDistribution build configuration.