Skip to content

Commit eb71146

Browse files
committed
Fix latestActiveXcode initialization
1 parent 477c6fc commit eb71146

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Tool/Sources/XcodeInspector/XcodeInspector.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public final class XcodeInspector: ObservableObject {
7777
.filter { $0.isXcode }
7878
.map(XcodeAppInstanceInspector.init(runningApplication:))
7979
let activeXcode = xcodes.first(where: \.isActive)
80+
latestActiveXcode = activeXcode ?? xcodes.first
8081
activeApplication = activeXcode ?? runningApplications
8182
.first(where: \.isActive)
8283
.map(AppInstanceInspector.init(runningApplication:))

0 commit comments

Comments
 (0)