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

CoderWGB / 2023-08-25 / 原文

if [ "$PLATFORM_NAME" = "iphonesimulator" ] ;
then
    echo "模拟器运行"
else
    echo "真机运行"
fi