CHANGED:aplied the TARGET_IPHONE_SIMULATOR macro condition routine