Xcode区分真机和模拟器执行不同的shell脚本

if [ "$PLATFORM_NAME" = "iphonesimulator" ] ;
then
    echo "模拟器运行"
else
    echo "真机运行"
fi
posted @ 2023-08-24 23:20  CoderWGB  阅读(29)  评论(0编辑  收藏  举报