Failed to build active scheme

Viewed 2621

My SwiftUI project won't build anymore. It tells me Failed to build active scheme without any more information. enter image description here

Here's the full repository: https://github.com/nathfreder/HackerNews/tree/master/HackerNews

I noticed the issue after changing

ForEach(0..<10) { _ in
    NavigationButton(destination: Text("")) {
        StoryRow()
    }
}

to

ForEach(store.stories) { story in
    NavigationButton(destination: Text("")) {
        StoryRow(story: story)
    }
}
1 Answers

If you notice, this project includes Firebase swift package for some reason and that's causing the preview build to fail. The actual error in Xcode's Report navigator is "'GoogleUtilities/GULLoggerLevel.h' file not found".

Removing the firebase package from the project's Swift Packages section disappeared the error for me:

enter image description here

Related