无法建立有效的方案

时间:2019-06-09 18:19:19

标签: ios swiftui swift5.1

我的SwiftUI项目将不再构建。它告诉我Failed to build active scheme,而没有任何更多信息。 enter image description here

这是完整的存储库: https://github.com/nathfreder/HackerNews/tree/master/HackerNews

更改后我发现了问题

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

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

1 个答案:

答案 0 :(得分:2)

如果您注意到,该项目出于某些原因包括Firebase swift软件包,这将导致预览版本失败。 Xcode的报表导航器中的实际错误是“找不到''GoogleUtilities / GULLoggerLevel.h'文件”。

从项目的 Swift软件包部分中删除firebase软件包对我来说是错误消息:

enter image description here