Run a virtual iPhone on an Apple Silicon Mac.
Swift
icli 0.7.17: app register and refresh build the record uicache builds
Lakr2335be1f18f9895
diff --git a/Research/vphoned_http_api.md b/Research/vphoned_http_api.mdindex 7f92cecb..6388e2f0 100644--- a/Research/vphoned_http_api.md+++ b/Research/vphoned_http_api.md@@ -82,7 +82,12 @@ The guest links IcliKit directly. App registration refresh is available throughthe bootstrap vphoned installed (vphoned runs from the system volume, soIcliKit cannot find the bootstrap itself). `system.uicache` is the same call.IcliKit verifies registrations by reading them back; a bundle it could not-register or verify is named in the error message.+register or verify is named in the error message. Since icli 0.7.17 a+registration builds the record uicache builds (entitlements, containerization,+data and group containers, plug-ins), a refresh registers again any app whose+record differs from it and leaves a matching one running, and Apple's apps and+other installers' apps are listed under `skipped`. `apps.register` refuses+those apps.`screen.screenshot` uses IcliKit's native screen capture and returns a base64JPEG with `mime_type`, `width`, and `height`; the current VM produces 1290×2796.The host's Save/Copy Screenshot menu decodes this guest image. It omits thediff --git a/VPhone.xcworkspace/xcshareddata/swiftpm/Package.resolved b/VPhone.xcworkspace/xcshareddata/swiftpm/Package.resolvedindex 8dcac47f..f919bf36 100644--- a/VPhone.xcworkspace/xcshareddata/swiftpm/Package.resolved+++ b/VPhone.xcworkspace/xcshareddata/swiftpm/Package.resolved@@ -24,8 +24,8 @@"kind" : "remoteSourceControl","location" : "https://github.com/owngoal-dev/icli.git","state" : {- "revision" : "702990b59ca412ad975f9f0ea5dafe95c30fac21",- "version" : "0.7.16"+ "revision" : "6f4e14249aa40f9e54d6031a7e3395918b3e3abd",+ "version" : "0.7.17"}},{diff --git a/VPhoneDaemon/Daemon/GuestAPI+AppDetail.swift b/VPhoneDaemon/Daemon/GuestAPI+AppDetail.swiftindex 878b1706..fda6ca74 100644--- a/VPhoneDaemon/Daemon/GuestAPI+AppDetail.swift+++ b/VPhoneDaemon/Daemon/GuestAPI+AppDetail.swift@@ -57,8 +57,9 @@ extension GuestAPI {extension GuestAPI {/// `uicache -a`. Without a directory, IcliKit looks for the bootstrap from/// the running executable, and vphoned runs from the system volume, so it- /// finds none and refreshes the system's /Applications, failing on Apple's- /// apps. The bootstrap vphoned installed names the directory instead.+ /// finds none and refreshes the system's /Applications, where every app is+ /// Apple's and is skipped. The bootstrap vphoned installed names the+ /// directory instead.static func refreshAppRegistrations(directory: String?) throws -> [String: Any] {guard let directory = try directory ?? GuestIrisinInstaller.completedBootstrap().map({ $0.root + "/Applications" })else {diff --git a/VPhoneDaemon/VPhoneDaemon.xcodeproj/project.pbxproj b/VPhoneDaemon/VPhoneDaemon.xcodeproj/project.pbxprojindex 5e751689..eff29a85 100644--- a/VPhoneDaemon/VPhoneDaemon.xcodeproj/project.pbxproj+++ b/VPhoneDaemon/VPhoneDaemon.xcodeproj/project.pbxproj@@ -345,7 +345,7 @@repositoryURL = "https://github.com/owngoal-dev/icli.git";requirement = {kind = upToNextMajorVersion;- minimumVersion = 0.7.16;+ minimumVersion = 0.7.17;};};C10000000000000000000072 /* XCRemoteSwiftPackageReference "swift-nio" */ = {diff --git a/VPhoneDaemon/VPhoneDaemon.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/VPhoneDaemon/VPhoneDaemon.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolvedindex 28a072bb..0f602755 100644--- a/VPhoneDaemon/VPhoneDaemon.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved+++ b/VPhoneDaemon/VPhoneDaemon.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved@@ -6,8 +6,8 @@"kind" : "remoteSourceControl","location" : "https://github.com/owngoal-dev/icli.git","state" : {- "revision" : "702990b59ca412ad975f9f0ea5dafe95c30fac21",- "version" : "0.7.16"+ "revision" : "6f4e14249aa40f9e54d6031a7e3395918b3e3abd",+ "version" : "0.7.17"}},{