Add versioning to scheme bindings, refer to VirtualBuddy components by a stable symlinked location, store scheme URLs so that app can potentially migrate schemes in the future

This commit is contained in:
Gui Rambo
2026-11-24 17:36:34 -03:00
parent 47bcd78c19
commit 941e7fb61e
13 changed files with 201 additions and 38 deletions

View File

@@ -5,7 +5,10 @@ public enum VirtualBuddyDebugging {
public static let host = DebugHostConfiguration(
applicationURL: Bundle.main.bundleURL,
helperURL: Bundle.main.bundleURL.appendingPathComponent("Contents/MacOS/vbdebug"),
runtimeDirectory: URL(fileURLWithPath: "/private/tmp/vbdebug-\(getuid())", isDirectory: true)
runtimeDirectory: URL(fileURLWithPath: "/private/tmp/vbdebug-\(getuid())", isDirectory: true),
// Xcode schemes created by earlier versions refer to this directory. Do not move it.
linksDirectory: FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask)[0]
.appendingPathComponent("codes.rambo.VirtualBuddy/XcodeDebugging", isDirectory: true)
)
public static let bindings = KeychainDebugBindingStore(