判断XCode调试连接的设备类型

判断XCode调试链接的设置  是物理设备还是模拟器

#if !TARGET_IPHONE_SIMULATOR

return [NSString stringWithFormat:@"%s.local", baseHostName];

#else

return [NSString stringWithFormat:@"%s", baseHostName];

#endif

THE END !

原文地址:https://www.cnblogs.com/xingchen/p/2142851.html