Run a virtual iPhone on an Apple Silicon Mac.
Swift
Keep the 2.7 series for the host location setting
Jacky5050c4d87812
diff --git a/Documents/Downloads/README.md b/Documents/Downloads/README.mdindex 8c53cf05..e909f18c 100644--- a/Documents/Downloads/README.md+++ b/Documents/Downloads/README.md@@ -31,7 +31,6 @@ Use a `VPhone.bundle` from the same series as Launchpad. The series is the first| Launchpad | VPhone.bundle || --- | --- |-| 2.8.x | 2.8.x || 2.7.x | 2.7.x || 2.6.x | 2.6.x || 2.5.x | 2.5.x |diff --git a/VPhoneExecutable/VPhoneVirtualization/Resources/Info.plist b/VPhoneExecutable/VPhoneVirtualization/Resources/Info.plistindex 6e30381f..45c40c7c 100644--- a/VPhoneExecutable/VPhoneVirtualization/Resources/Info.plist+++ b/VPhoneExecutable/VPhoneVirtualization/Resources/Info.plist@@ -11,7 +11,7 @@<key>CFBundleVersion</key><string>34</string><key>CFBundleShortVersionString</key>- <string>2.8.0</string>+ <string>2.7.0</string><key>NSMicrophoneUsageDescription</key><string>Shares this Mac's microphone with the virtual iPhone so apps running inside it can record.</string></dict>diff --git a/VPhoneLaunchpad/Configuration/Version.xcconfig b/VPhoneLaunchpad/Configuration/Version.xcconfigindex 5bc48b7c..b262dbe1 100644--- a/VPhoneLaunchpad/Configuration/Version.xcconfig+++ b/VPhoneLaunchpad/Configuration/Version.xcconfig@@ -1,4 +1,4 @@-MARKETING_VERSION = 2.8.0+MARKETING_VERSION = 2.7.0// Bump whenever the helper changes. The app blesses the helper again when the// installed helper's version or bytes differ from the copy it embeds.CURRENT_PROJECT_VERSION = 15diff --git a/VPhoneLaunchpad/Tests/BundleNamesTests.swift b/VPhoneLaunchpad/Tests/BundleNamesTests.swiftindex 80a709da..c9d1a738 100644--- a/VPhoneLaunchpad/Tests/BundleNamesTests.swift+++ b/VPhoneLaunchpad/Tests/BundleNamesTests.swift@@ -17,14 +17,14 @@ struct BundleNamesTests {// `-local` (legacy), `-local.<8+ lowercase hex>` or `-ci.<7+ hex>`.// Anything else is kept whole, so it never parses as a version.let expectations: [Expectation] = [- Expectation(name: "2.8.2", bundleVersion: "2.8.2", isLocalBuild: false, isCompatible: true, isValid: true),- Expectation(name: "2.8.2-local", bundleVersion: "2.8.2", isLocalBuild: true, isCompatible: true, isValid: true),- Expectation(name: "2.8.2-local.ab12cd34", bundleVersion: "2.8.2", isLocalBuild: true, isCompatible: true, isValid: true),+ Expectation(name: "2.7.2", bundleVersion: "2.7.2", isLocalBuild: false, isCompatible: true, isValid: true),+ Expectation(name: "2.7.2-local", bundleVersion: "2.7.2", isLocalBuild: true, isCompatible: true, isValid: true),+ Expectation(name: "2.7.2-local.ab12cd34", bundleVersion: "2.7.2", isLocalBuild: true, isCompatible: true, isValid: true),// The build identifier is lowercase hex; uppercase is no build.- Expectation(name: "2.8.2-local.AB12CD34", bundleVersion: "2.8.2-local.AB12CD34", isLocalBuild: false, isCompatible: false, isValid: true),- Expectation(name: "2.8.2-local.ab12", bundleVersion: "2.8.2-local.ab12", isLocalBuild: false, isCompatible: false, isValid: true),- Expectation(name: "2.8.2-ci.abcdef1", bundleVersion: "2.8.2", isLocalBuild: false, isCompatible: true, isValid: true),- Expectation(name: "2.7.9-local.ab12cd34", bundleVersion: "2.7.9", isLocalBuild: true, isCompatible: false, isValid: true),+ Expectation(name: "2.7.2-local.AB12CD34", bundleVersion: "2.7.2-local.AB12CD34", isLocalBuild: false, isCompatible: false, isValid: true),+ Expectation(name: "2.7.2-local.ab12", bundleVersion: "2.7.2-local.ab12", isLocalBuild: false, isCompatible: false, isValid: true),+ Expectation(name: "2.7.2-ci.abcdef1", bundleVersion: "2.7.2", isLocalBuild: false, isCompatible: true, isValid: true),+ Expectation(name: "2.6.9-local.ab12cd34", bundleVersion: "2.6.9", isLocalBuild: true, isCompatible: false, isValid: true),Expectation(name: "../x", bundleVersion: "../x", isLocalBuild: false, isCompatible: false, isValid: false),Expectation(name: "", bundleVersion: "", isLocalBuild: false, isCompatible: false, isValid: false),]diff --git a/VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadBundleStore.swift b/VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadBundleStore.swiftindex 21d9b19f..507c9b1f 100644--- a/VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadBundleStore.swift+++ b/VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadBundleStore.swift@@ -78,10 +78,10 @@ nonisolated enum VPhoneLaunchpadNames {/// machine's Settings pass. 2.5.0 added `vm leases`, which Host Setup/// lists and the helper runs to release orphaned DHCP leases. 2.6.0 added/// `vm config --unlock-at-startup`, which a machine's Settings pass. 2.7.0- /// added `vm clone --new-identity`, which Clone passes, and- /// `vm snapshot`, which the Snapshots sheet runs. 2.8.0 added `vm config- /// --sync-host-location`, which a machine's Settings pass.- private static let minimumBundleComponents = (2, 8, 0)+ /// added `vm clone --new-identity`, which Clone passes, `vm snapshot`,+ /// which the Snapshots sheet runs, and `vm config --sync-host-location`,+ /// which a machine's Settings pass.+ private static let minimumBundleComponents = (2, 7, 0)static let minimumBundleVersion ="\(minimumBundleComponents.0).\(minimumBundleComponents.1).\(minimumBundleComponents.2)"