buildTarget function
The build target a hook produces assets for: macos/arm64,
ios-simulator/arm64, ios/arm64, linux/x64, windows/arm64, and so on.
Runtime tables are keyed by this string. The iOS simulator is a separate target because its binaries are built with a different SDK than devices.
Implementation
String buildTarget(CodeConfig code) {
final os = code.targetOS;
final platform = os == OS.iOS && code.iOS.targetSdk == IOSSdk.iPhoneSimulator
? 'ios-simulator'
: os.toString();
return '$platform/${code.targetArchitecture}';
}