AIRHelper: fix failed Adobe AIR for iOS build on Windows

It was incorrectly trying to list simulators from Xcode (and Xcode, obviously, doesn't exist on Windows)
This commit is contained in:
Josh Tynjala
2023-04-11 15:21:52 -07:00
parent bd810c888d
commit e753c5c933

View File

@@ -204,7 +204,7 @@ class AIRHelper
Sys.putEnv("AIR_NOANDROIDFLAIR", "true");
}
if (targetPlatform == IOS)
if (targetPlatform == IOS && System.hostPlatform == MAC)
{
Sys.putEnv("AIR_IOS_SIMULATOR_DEVICE", XCodeHelper.getSimulatorName(project));
}