We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32f512e commit b6adfcaCopy full SHA for b6adfca
Sources/Shark/CLI/XcodeProjectHelper.swift
@@ -32,7 +32,10 @@ struct XcodeProjectHelper {
32
func resourcePaths() async throws -> ResourcePaths {
33
34
let xcodeproj = try await mapper.map(at: self.projectPath)
35
- guard let mainProject = xcodeproj.projects.values.first(where: { $0.schemes.count >= 2 }) else { return .init() }
+ guard let mainProject = xcodeproj.projects.values.first(where: { !$0.schemes.isEmpty }) else {
36
+ print("Could not find main project")
37
+ exit(EXIT_FAILURE)
38
+ }
39
40
let selectedTarget: Target
41
0 commit comments