@@ -376,7 +376,7 @@ index 509f99ae8e..a1bf71dee7 100644
376
376
+ _bootstrap._verbose_message('Adding Apple Framework dylib finder at {}', frameworks_folder)
377
377
+ sys.meta_path.append(AppleFrameworkFinder(frameworks_folder))
378
378
diff --git a/Lib/platform.py b/Lib/platform.py
379
- index b7e7bc439e..b19881890a 100755
379
+ index b7e7bc439e..bbe36759a6 100755
380
380
--- a/Lib/platform.py
381
381
+++ b/Lib/platform.py
382
382
@@ -445,6 +445,26 @@
@@ -400,7 +400,7 @@ index b7e7bc439e..b19881890a 100755
400
400
+ from actual devices because they are reproducing actual device
401
401
+ properties.
402
402
+ """
403
- + return getattr(sys.implementation, "_multiarch ", False)
403
+ + return getattr(sys.implementation, "_simulator ", False)
404
404
+
405
405
+
406
406
def _java_getprop(name, default):
@@ -434,7 +434,7 @@ index b7e7bc439e..b19881890a 100755
434
434
+ system, release, model = iOS_ver()
435
435
+ # Simulator devices report as "arm64" or "x86_64";
436
436
+ # use the model as the basis for the normalized machine name.
437
- + if sys.implementation._multiarch.endswith("simulator" ):
437
+ + if getattr( sys.implementation, "_simulator", False ):
438
438
+ machine = f"{model} Simulator"
439
439
+ processor = os.uname().machine
440
440
+ else:
0 commit comments