gpt4 book ai didi

swift - Xcode忽略导入

转载 作者:搜寻专家 更新时间:2023-10-30 21:48:26 25 4
gpt4 key购买 nike

我刚刚安装了 Xcode 11,当我尝试创建新项目并选中 SwiftUI 复选标记时,它返回错误。

无法成功构建和运行。

File 'ContentView.swift' is part of module 'SwiftUI'; ignoring import

ContentView.swift

enter image description here

Use of undeclared type 'View'

SceneDelegate.swift

enter image description here

Use of unresolved identifier 'UIHostingController'

我已经尝试删除所有派生数据并将命令行工具设置为 11

最佳答案

您的项目名为 SwiftUI - 请尝试使用其他名称。

关于swift - Xcode忽略导入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56505797/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com