SwiftUI - 预览 canvas 给出协调安装错误
SwiftUI - Preview canvas gives Coordinated install error
我正在尝试 运行 SwiftUI 的 Landmark 示例,但出现以下错误
Error Domain=IXErrorDomain Code=29 "A coordinated install for com.example.apple-samplecode.Landmarks is already pending." UserInfo={NSLocalizedFailureReason=Unhandled reason for code: 29 in domain IXErrorDomain, FunctionName=+[IXAppInstallCoordinator(IXSimpleInstaller) _beginInstallForURL:consumeSource:options:completion:]_block_invoke, SourceFileLine=143, NSLocalizedDescription=A coordinated install for com.example.apple-samplecode.Landmarks is already pending.}
环境:Catalina Beta + Xcode Beta
请查看 SwiftUI 已知问题
已知问题
Previews may fail or update incorrectly when switching between files.
(50841287)
=> Workaround: Add a newline to the end of the active file, then click "Resume" in the banner that appears.
watchOS previews might fail if you select a physical phone that’s
paired with a watch as the run destination from the Scheme pop-up
menu. (50861269)
=>Workaround: Select a watchOS simulator while working with previews.
Previews don’t appear in the canvas for private and fileprivate
structures that conform to PreviewProvider. (47011316)
=> Workaround: Remove the private or fileprivate access control from your
conforming type.
Previews might take several seconds to update when switching devices
in the run destination selector the first time. (47562171)
Previews might temporarily show the incorrect device chrome when
switching devices using the run destination from the Scheme pop-up
menu. (49496647)
The canvas doesn’t support focus. (50275735)
Undo is unavailable in the canvas. (49651153)
=>Workaround: Bring the source editor into focus and perform the undo
there.
The insertion indicator only shows on the topmost item for repeated
content such as content in a List or ForEach view. (50244112)
Xcode 11 beta doesn’t support working with SwiftUI in a project
configured to use UIKit for Mac.
When you launch Xcode on macOS 10.15 beta, the required packages
installer might display erroneously. (51080815)
注:
我知道,每个人都想使用新的布局设计模式,但 SwiftUI
框架仍然不稳定。
我正在尝试 运行 SwiftUI 的 Landmark 示例,但出现以下错误
Error Domain=IXErrorDomain Code=29 "A coordinated install for com.example.apple-samplecode.Landmarks is already pending." UserInfo={NSLocalizedFailureReason=Unhandled reason for code: 29 in domain IXErrorDomain, FunctionName=+[IXAppInstallCoordinator(IXSimpleInstaller) _beginInstallForURL:consumeSource:options:completion:]_block_invoke, SourceFileLine=143, NSLocalizedDescription=A coordinated install for com.example.apple-samplecode.Landmarks is already pending.}
环境:Catalina Beta + Xcode Beta
请查看 SwiftUI 已知问题
已知问题
Previews may fail or update incorrectly when switching between files. (50841287)
=> Workaround: Add a newline to the end of the active file, then click "Resume" in the banner that appears.
watchOS previews might fail if you select a physical phone that’s paired with a watch as the run destination from the Scheme pop-up menu. (50861269)
=>Workaround: Select a watchOS simulator while working with previews.
Previews don’t appear in the canvas for private and fileprivate structures that conform to PreviewProvider. (47011316)
=> Workaround: Remove the private or fileprivate access control from your conforming type.
Previews might take several seconds to update when switching devices in the run destination selector the first time. (47562171)
Previews might temporarily show the incorrect device chrome when switching devices using the run destination from the Scheme pop-up menu. (49496647)
The canvas doesn’t support focus. (50275735)
Undo is unavailable in the canvas. (49651153)
=>Workaround: Bring the source editor into focus and perform the undo there.
The insertion indicator only shows on the topmost item for repeated content such as content in a List or ForEach view. (50244112)
Xcode 11 beta doesn’t support working with SwiftUI in a project configured to use UIKit for Mac.
When you launch Xcode on macOS 10.15 beta, the required packages installer might display erroneously. (51080815)
注:
我知道,每个人都想使用新的布局设计模式,但 SwiftUI
框架仍然不稳定。