Xcode区分真机和模拟器执行不同的shell脚本
if [ "$PLATFORM_NAME" = "iphonesimulator" ] ;
then
echo "模拟器运行"
else
echo "真机运行"
fi
未经作者授权,禁止转载
THE END
if [ "$PLATFORM_NAME" = "iphonesimulator" ] ;
then
echo "模拟器运行"
else
echo "真机运行"
fi