我的环境是: Xcode 15.0 斯威夫特5 最低部署:iOS 13 我的项目是 UIKit,但是当我使用 SwiftUI 文件时,出现错误“需要新的构建系统”,如何修复它?
这是预览版的完整诊断
== DATE:
Friday, October 25, 2024 at 17:14:41 China Standard Time
2024-10-25T09:14:41Z
== 暂停原因:
initial
== 待更新原因:
Data Sources changed
Data Sources changed
Data Sources changed
Open file was edited
Preview Settings changed
Current scheme changed
Current scheme changed
Preview Settings changed
Open file was edited
Workspace build settings changed
Workspace build settings changed
Preview Settings changed
== 预览更新错误:
NeedXCBuildError: New build system required
The new build system is required for using Xcode previews
== 版本信息:
Tools: 15C500b
OS: 22H123
PID: 7674
Model: Mac mini
Arch: arm64e
== 环境:
openFiles = [
/Users/kim/Desktop/TradeBook_App/TradeBook/NewWidget/EmptyDataView.swift
]
wantsNewBuildSystem = false
newBuildSystemAvailable = true
activeScheme = TradeBook
activeRunDestination = Any iOS Device variant iphoneos undefined_arch
workspaceArena = [x]
buildArena = [x]
buildableEntries = [
NewWidgetExtension.appex
]
runMode = Dynamic Replacement
== 选择的跑步目的地:
name = Any iOS Device
eligible = false
sdk = Optional(<DVTSDK:0x142722fe0:'iphoneos17.2':iOS 17.2:<DVTFilePath:0x6000023f3020:'/Users/kim/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk'>>)
variant = Optional("iphoneos")
device = Optional(<DVTiPhonePlaceholder: 0x14272f140 (Any iOS Device | undefined_arch)>)
== 电源状态日志:
2024/10/25, 17:09 Received power source state: Externally Powered
2024/10/25, 17:09 No device power state user override user default value.Current power state: Full Power