#import #if (TARGET_IPHONE_SIMULATOR) // シミュレータで動作中 NSLog(@"Running on Simulator");#else // 実機で動作中 NSLog(@"Running on Device");#endif