Build Information
Failed to build RichText, reference 1.0.0 (a2fb19), with Swift 6.4 for watchOS using Xcode 27.0 on 26 Sep 2026 00:46:34 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme RichText -destination generic/platform=watchOSBuild Log
9 |
10 | extension NSTextRange {
11 | convenience init?(_ nsRange: NSRange, textContentManager: NSTextContentManager) {
| `- error: 'NSTextContentManager' is unavailable in watchOS
12 | let documentStart = textContentManager.documentRange.location
13 | let startLocation = textContentManager.location(
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h:144:12: note: 'NSTextContentManager' has been explicitly marked unavailable here
142 | /// ``NSTextLayoutManager`` that is active and focused for editing.
143 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
144 | @interface NSTextContentManager : NSObject <NSTextElementProvider, NSSecureCoding>
| `- note: 'NSTextContentManager' has been explicitly marked unavailable here
145 | #pragma mark Initialization
146 | /// Creates a new content manager.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:10:39: error: cannot find type 'PlatformTextView' in scope
8 | import SwiftUI
9 |
10 | final class InlineAttachmentTextView: PlatformTextView {
| `- error: cannot find type 'PlatformTextView' in scope
11 | var inlineAttachmentViews: [ObjectIdentifier: PlatformView] = [:]
12 | var inlineAttachmentsByID: [AnyHashable: InlineHostingAttachment] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+Attachments.swift:75:28: error: 'NSTextLayoutManager' is unavailable in watchOS
73 | extension InlineAttachmentTextView {
74 | private func updateInlineAttachmentViewsUsingTextKit2(
75 | textLayoutManager: NSTextLayoutManager,
| `- error: 'NSTextLayoutManager' is unavailable in watchOS
76 | visibleAttachmentViews: inout Set<ObjectIdentifier>
77 | ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutManager.h:66:12: note: 'NSTextLayoutManager' has been explicitly marked unavailable here
64 | /// participates in the content layout process.
65 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
66 | @interface NSTextLayoutManager : NSObject <NSSecureCoding, NSTextSelectionDataSource>
| `- note: 'NSTextLayoutManager' has been explicitly marked unavailable here
67 | #pragma mark Initialization
68 | /// Creates a new text layout manager.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+Attachments.swift:194:24: error: 'NSLayoutManager' is unavailable in watchOS
192 | extension InlineAttachmentTextView {
193 | private func updateInlineAttachmentViewsUsingTextKit1(
194 | layoutManager: NSLayoutManager,
| `- error: 'NSLayoutManager' is unavailable in watchOS
195 | textContainer: NSTextContainer,
196 | visibleAttachmentViews: inout Set<ObjectIdentifier>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h:58:12: note: 'NSLayoutManager' has been explicitly marked unavailable here
56 |
57 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0)) API_UNAVAILABLE(watchos)
58 | @interface NSLayoutManager : NSObject <NSSecureCoding>
| `- note: 'NSLayoutManager' has been explicitly marked unavailable here
59 |
60 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+Attachments.swift:195:24: error: 'NSTextContainer' is unavailable in watchOS
193 | private func updateInlineAttachmentViewsUsingTextKit1(
194 | layoutManager: NSLayoutManager,
195 | textContainer: NSTextContainer,
| `- error: 'NSTextContainer' is unavailable in watchOS
196 | visibleAttachmentViews: inout Set<ObjectIdentifier>
197 | ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+Storage.swift:57:25: error: 'NSTextStorage' is unavailable in watchOS
55 | private func appendNewSuffixIfPossible(
56 | from attributedString: NSAttributedString,
57 | to textStorage: NSTextStorage
| `- error: 'NSTextStorage' is unavailable in watchOS
58 | ) -> Bool {
59 | guard attributedString.length > textStorage.length else {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h:46:12: note: 'NSTextStorage' has been explicitly marked unavailable here
44 | /// `edited:range:changeInLength:` to get everything else to happen.
45 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
46 | @interface NSTextStorage : NSMutableAttributedString <NSSecureCoding>
| `- note: 'NSTextStorage' has been explicitly marked unavailable here
47 | /**************************** Pending edit info ****************************/
48 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:29:19: error: method does not override any method from its superclass
27 | }
28 |
29 | override func layoutSubviews() {
| `- error: method does not override any method from its superclass
30 | super.layoutSubviews()
31 | invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:35:18: error: property does not override any property from its superclass
33 | }
34 |
35 | override var intrinsicContentSize: CGSize {
| `- error: property does not override any property from its superclass
36 | CGSize(width: PlatformView.noIntrinsicMetric, height: PlatformView.noIntrinsicMetric)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:39:44: error: 'UITextRange' is unavailable in watchOS
37 | }
38 |
39 | override func attributedText(in range: UITextRange) -> NSAttributedString {
| `- error: 'UITextRange' is unavailable in watchOS
40 | replaceAttachmentWithEquivalentText(
41 | in: super.attributedText(in: range)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h:307:12: note: 'UITextRange' has been explicitly marked unavailable here
305 |
306 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
307 | @interface UITextRange : NSObject
| `- note: 'UITextRange' has been explicitly marked unavailable here
308 |
309 | @property (nonatomic, readonly, getter=isEmpty) BOOL empty; // Whether the range is zero-length.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:39:19: error: method does not override any method from its superclass
37 | }
38 |
39 | override func attributedText(in range: UITextRange) -> NSAttributedString {
| `- error: method does not override any method from its superclass
40 | replaceAttachmentWithEquivalentText(
41 | in: super.attributedText(in: range)
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:45:34: error: 'UITextRange' is unavailable in watchOS
43 | }
44 |
45 | override func text(in range: UITextRange) -> String? {
| `- error: 'UITextRange' is unavailable in watchOS
46 | return attributedText(in: range).string
47 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h:307:12: note: 'UITextRange' has been explicitly marked unavailable here
305 |
306 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
307 | @interface UITextRange : NSObject
| `- note: 'UITextRange' has been explicitly marked unavailable here
308 |
309 | @property (nonatomic, readonly, getter=isEmpty) BOOL empty; // Whether the range is zero-length.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:45:19: error: method does not override any method from its superclass
43 | }
44 |
45 | override func text(in range: UITextRange) -> String? {
| `- error: method does not override any method from its superclass
46 | return attributedText(in: range).string
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:50:19: error: method does not override any method from its superclass
48 |
49 | // TODO: It would be better to have a way to directly modify the copying item for each attachment. `NSItemProviderWriting` is not working here.
50 | override func copy(_ sender: Any?) {
| `- error: method does not override any method from its superclass
51 | let rangeToCopy: UITextRange
52 | if let selected = selectedTextRange, !selected.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:11:51: error: cannot find type 'PlatformView' in scope
9 |
10 | final class InlineAttachmentTextView: PlatformTextView {
11 | var inlineAttachmentViews: [ObjectIdentifier: PlatformView] = [:]
| `- error: cannot find type 'PlatformView' in scope
12 | var inlineAttachmentsByID: [AnyHashable: InlineHostingAttachment] = [:]
13 | var inlineAttachmentRangesByID: [AnyHashable: NSRange] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:124:29: error: 'NSTextContentManager' is unavailable in watchOS
122 | extension InlineAttachmentTextView {
123 | /// The content manager used when the text view operates with TextKit 2.
124 | var textContentManager: NSTextContentManager? {
| `- error: 'NSTextContentManager' is unavailable in watchOS
125 | textLayoutManager?.textContentManager
126 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h:144:12: note: 'NSTextContentManager' has been explicitly marked unavailable here
142 | /// ``NSTextLayoutManager`` that is active and focused for editing.
143 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
144 | @interface NSTextContentManager : NSObject <NSTextElementProvider, NSSecureCoding>
| `- note: 'NSTextContentManager' has been explicitly marked unavailable here
145 | #pragma mark Initialization
146 | /// Creates a new content manager.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:129:30: error: 'NSTextContentStorage' is unavailable in watchOS
127 |
128 | /// The content storage used when the text view operates with TextKit 2.
129 | var _textContentStorage: NSTextContentStorage? {
| `- error: 'NSTextContentStorage' is unavailable in watchOS
130 | textContentManager as? NSTextContentStorage
131 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h:303:12: note: 'NSTextContentStorage' has been explicitly marked unavailable here
301 | /// the backing store.
302 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
303 | @interface NSTextContentStorage : NSTextContentManager <NSTextStorageObserving>
| `- note: 'NSTextContentStorage' has been explicitly marked unavailable here
304 | #pragma mark Basic properties
305 | /// The delegate for the content storage object.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:134:25: error: 'NSLayoutManager' is unavailable in watchOS
132 |
133 | /// The legacy layout manager used when the text view operates with TextKit 1.
134 | var _layoutManager: NSLayoutManager? {
| `- error: 'NSLayoutManager' is unavailable in watchOS
135 | self.layoutManager
136 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h:58:12: note: 'NSLayoutManager' has been explicitly marked unavailable here
56 |
57 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0)) API_UNAVAILABLE(watchos)
58 | @interface NSLayoutManager : NSObject <NSSecureCoding>
| `- note: 'NSLayoutManager' has been explicitly marked unavailable here
59 |
60 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:141:25: error: 'NSTextContainer' is unavailable in watchOS
139 | ///
140 | /// For UIKit, this is guaranteed to be non-`nil`. For AppKit, this could be `nil`.
141 | var _textContainer: NSTextContainer? {
| `- error: 'NSTextContainer' is unavailable in watchOS
142 | self.textContainer
143 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:148:23: error: 'NSTextStorage' is unavailable in watchOS
146 | ///
147 | /// For UIKit, this is guaranteed to be non-`nil`. For AppKit, this could be `nil`.
148 | var _textStorage: NSTextStorage? {
| `- error: 'NSTextStorage' is unavailable in watchOS
149 | self.textStorage
150 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h:46:12: note: 'NSTextStorage' has been explicitly marked unavailable here
44 | /// `edited:range:changeInLength:` to get everything else to happen.
45 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
46 | @interface NSTextStorage : NSMutableAttributedString <NSSecureCoding>
| `- note: 'NSTextStorage' has been explicitly marked unavailable here
47 | /**************************** Pending edit info ****************************/
48 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:171:27: error: cannot find type 'PlatformFont' in scope
169 | }
170 |
171 | func _fixFont(_ font: PlatformFont?, in range: NSRange) {
| `- error: cannot find type 'PlatformFont' in scope
172 | let font: PlatformFont = font ?? {
173 | #if canImport(AppKit)
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:22:42: error: cannot find type 'PlatformFont' in scope
20 | /// ```
21 | @inlinable
22 | public nonisolated func font(_ font: PlatformFont?) -> some View {
| `- error: cannot find type 'PlatformFont' in scope
23 | modifier(_PlatformFontModifier(font: font))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:29:35: error: cannot find type 'PlatformFont' in scope
27 | @usableFromInline
28 | struct _PlatformFontModifier: ViewModifier {
29 | nonisolated(unsafe) var font: PlatformFont?
| `- error: cannot find type 'PlatformFont' in scope
30 |
31 | @usableFromInline
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:32:28: error: cannot find type 'PlatformFont' in scope
30 |
31 | @usableFromInline
32 | nonisolated init(font: PlatformFont?) {
| `- error: cannot find type 'PlatformFont' in scope
33 | self.font = font
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:50:30: error: cannot find type 'PlatformFont' in scope
48 |
49 | struct FallbackPlatformFont: EnvironmentKey {
50 | static var defaultValue: PlatformFont {
| `- error: cannot find type 'PlatformFont' in scope
51 | .systemFont(ofSize: PlatformFont.systemFontSize)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:49:8: error: type 'FallbackPlatformFont' does not conform to protocol 'EnvironmentKey'
47 | }
48 |
49 | struct FallbackPlatformFont: EnvironmentKey {
| |- error: type 'FallbackPlatformFont' does not conform to protocol 'EnvironmentKey'
| `- note: add stubs for conformance
50 | static var defaultValue: PlatformFont {
51 | .systemFont(ofSize: PlatformFont.systemFontSize)
SwiftUI.EnvironmentKey.Value:2:16: note: protocol requires nested type 'Value'
1 | protocol EnvironmentKey {
2 | associatedtype Value}
| `- note: protocol requires nested type 'Value'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:57:31: error: cannot find type 'PlatformFont' in scope
55 | extension EnvironmentValues {
56 | @usableFromInline
57 | var fallbackPlatformFont: PlatformFont? {
| `- error: cannot find type 'PlatformFont' in scope
58 | get { self[FallbackPlatformFont.self] }
59 | set { self[FallbackPlatformFont.self] = newValue ?? FallbackPlatformFont.defaultValue }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:16:31: error: cannot find type 'UIViewRepresentable' in scope
14 | typealias PlatformColor = NSColor
15 | #elseif canImport(UIKit)
16 | typealias ViewRepresentable = UIViewRepresentable
| `- error: cannot find type 'UIViewRepresentable' in scope
17 | typealias RepresentableContext = UIViewRepresentableContext
18 | typealias PlatformColor = UIColor
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:17:34: error: cannot find type 'UIViewRepresentableContext' in scope
15 | #elseif canImport(UIKit)
16 | typealias ViewRepresentable = UIViewRepresentable
17 | typealias RepresentableContext = UIViewRepresentableContext
| `- error: cannot find type 'UIViewRepresentableContext' in scope
18 | typealias PlatformColor = UIColor
19 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:151:21: error: cannot find type 'PlatformTextView' in scope
149 | @MainActor
150 | static func mergeRenderConfigurationIntoTextView(
151 | _ textView: PlatformTextView,
| `- error: cannot find type 'PlatformTextView' in scope
152 | configuration: TextViewRenderConfiguration
153 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:172:26: error: 'NSTextContainer' is unavailable in watchOS
170 |
171 | private static func updateTextContainer(
172 | _ textContainer: NSTextContainer,
| `- error: 'NSTextContainer' is unavailable in watchOS
173 | configuration: TextViewRenderConfiguration
174 | ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextViewRenderConfiguration.swift:17:22: error: cannot find type 'PlatformFont' in scope
15 | }
16 |
17 | var defaultFont: PlatformFont?
| `- error: cannot find type 'PlatformFont' in scope
18 | var fontResolutionContext: Font.Context
19 | var multilineTextAlignment: TextAlignment
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextViewRenderConfiguration.swift:63:15: error: cannot find type 'PlatformFont' in scope
61 | extension AttributedString.LineHeight {
62 | func _richTextLineHeightSetting(
63 | font: PlatformFont?
| `- error: cannot find type 'PlatformFont' in scope
64 | ) -> TextViewRenderConfiguration.LineHeightSetting {
65 | let decoded = try? JSONDecoder().decode(
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:16:30: error: cannot find type 'Context' in scope
14 | func makeCoordinator() -> Coordinator { Coordinator(self) }
15 |
16 | func makeUIView(context: Context) -> InlineAttachmentTextView {
| `- error: cannot find type 'Context' in scope
17 | let textView = InlineAttachmentTextView(
18 | usingTextLayoutManager: context.environment.usesTextLayoutManager
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:36:70: error: cannot find type 'Context' in scope
34 | }
35 |
36 | func updateUIView(_ textView: InlineAttachmentTextView, context: Context) {
| `- error: cannot find type 'Context' in scope
37 | context.coordinator.parent = self
38 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:57:18: error: cannot find type 'Context' in scope
55 | _ proposal: ProposedViewSize,
56 | uiView: InlineAttachmentTextView,
57 | context: Context
| `- error: cannot find type 'Context' in scope
58 | ) -> CGSize? {
59 | uiView.sizeThatFits(
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:72:34: error: 'UIEditMenuInteraction' is unavailable in watchOS
70 | var parent: _TextView_UIKit
71 | weak var textView: InlineAttachmentTextView?
72 | var editMenuInteraction: UIEditMenuInteraction?
| `- error: 'UIEditMenuInteraction' is unavailable in watchOS
73 |
74 | init(_ parent: _TextView_UIKit) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEditMenuInteraction.h:51:12: note: 'UIEditMenuInteraction' has been explicitly marked unavailable here
49 |
50 | UIKIT_EXTERN API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
51 | @interface UIEditMenuInteraction : NSObject <UIInteraction>
| `- note: 'UIEditMenuInteraction' has been explicitly marked unavailable here
52 |
53 | /// The object that defines the delegate of the interaction.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:79:34: error: 'UIView' is unavailable in watchOS
77 |
78 | func textDraggableView(
79 | _ textDraggableView: UIView & UITextDraggable,
| `- error: 'UIView' is unavailable in watchOS
80 | itemsForDrag dragRequest: UITextDragRequest
81 | ) -> [UIDragItem] {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:79:43: error: 'UITextDraggable' is unavailable in watchOS
77 |
78 | func textDraggableView(
79 | _ textDraggableView: UIView & UITextDraggable,
| `- error: 'UITextDraggable' is unavailable in watchOS
80 | itemsForDrag dragRequest: UITextDragRequest
81 | ) -> [UIDragItem] {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextDragging.h:33:11: note: 'UITextDraggable' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos) NS_SWIFT_UI_ACTOR
33 | @protocol UITextDraggable <UITextInput>
| `- note: 'UITextDraggable' has been explicitly marked unavailable here
34 |
35 | @property (nonatomic, weak, nullable) id<UITextDragDelegate> textDragDelegate;
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:80:39: error: 'UITextDragRequest' is unavailable in watchOS
78 | func textDraggableView(
79 | _ textDraggableView: UIView & UITextDraggable,
80 | itemsForDrag dragRequest: UITextDragRequest
| `- error: 'UITextDragRequest' is unavailable in watchOS
81 | ) -> [UIDragItem] {
82 | guard let textView = textDraggableView as? InlineAttachmentTextView else {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextDragging.h:102:11: note: 'UITextDragRequest' has been explicitly marked unavailable here
100 |
101 | API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos) NS_SWIFT_UI_ACTOR
102 | @protocol UITextDragRequest <NSObject>
| `- note: 'UITextDragRequest' has been explicitly marked unavailable here
103 |
104 | @required
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:81:15: error: 'UIDragItem' is unavailable in watchOS
79 | _ textDraggableView: UIView & UITextDraggable,
80 | itemsForDrag dragRequest: UITextDragRequest
81 | ) -> [UIDragItem] {
| `- error: 'UIDragItem' is unavailable in watchOS
82 | guard let textView = textDraggableView as? InlineAttachmentTextView else {
83 | return dragRequest.suggestedItems
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDragItem.h:17:12: note: 'UIDragItem' has been explicitly marked unavailable here
15 |
16 | UIKIT_EXTERN API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos) NS_SWIFT_UI_ACTOR
17 | @interface UIDragItem : NSObject
| `- note: 'UIDragItem' has been explicitly marked unavailable here
18 |
19 | - (instancetype)initWithItemProvider:(NSItemProvider *)itemProvider NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:69:40: error: 'UITextViewDelegate' is unavailable in watchOS
67 | }
68 |
69 | final class Coordinator: NSObject, UITextViewDelegate, UITextDragDelegate {
| `- error: 'UITextViewDelegate' is unavailable in watchOS
70 | var parent: _TextView_UIKit
71 | weak var textView: InlineAttachmentTextView?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextView.h:36:11: note: 'UITextViewDelegate' has been explicitly marked unavailable here
34 |
35 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
36 | @protocol UITextViewDelegate <NSObject, UIScrollViewDelegate>
| `- note: 'UITextViewDelegate' has been explicitly marked unavailable here
37 |
38 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:69:60: error: 'UITextDragDelegate' is unavailable in watchOS
67 | }
68 |
69 | final class Coordinator: NSObject, UITextViewDelegate, UITextDragDelegate {
| `- error: 'UITextDragDelegate' is unavailable in watchOS
70 | var parent: _TextView_UIKit
71 | weak var textView: InlineAttachmentTextView?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextDragging.h:56:11: note: 'UITextDragDelegate' has been explicitly marked unavailable here
54 |
55 | API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos) NS_SWIFT_UI_ACTOR
56 | @protocol UITextDragDelegate <NSObject>
| `- note: 'UITextDragDelegate' has been explicitly marked unavailable here
57 |
58 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:11:25: error: cannot find type 'UIViewRepresentable' in scope
9 | import SwiftUI
10 |
11 | struct _TextView_UIKit: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 | var content: TextContent
13 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:96:49: error: 'UITextRange' is unavailable in watchOS
94 |
95 | private extension InlineAttachmentTextView {
96 | func containsInlineAttachment(in textRange: UITextRange) -> Bool {
| `- error: 'UITextRange' is unavailable in watchOS
97 | let rangeStart = offset(from: beginningOfDocument, to: textRange.start)
98 | let rangeEnd = offset(from: beginningOfDocument, to: textRange.end)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h:307:12: note: 'UITextRange' has been explicitly marked unavailable here
305 |
306 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
307 | @interface UITextRange : NSObject
| `- note: 'UITextRange' has been explicitly marked unavailable here
308 |
309 | @property (nonatomic, readonly, getter=isEmpty) BOOL empty; // Whether the range is zero-length.
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes\ \&\ Attachments/AttributeContainer++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes\ \&\ Attachments/Attributes/InlineHostingAttachmentAttribute.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes\ \&\ Attachments/HostedAttachmentSizing.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes\ \&\ Attachments/InlineHostingAttachment.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes\ \&\ Attachments/InlineHostingAttachmentViewProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes\ \&\ Attachments/RichTextAttributes.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSLineBreakMode++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSTextAlignment++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSTextRange++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSWritingDirection++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/Text.LineStyle++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/Fragment\ Containers/InlineView.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/Fragment\ Containers/LineBreak.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/Fragment\ Containers/Paragraph.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/Fragment\ Containers/Space.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/Fragment\ Containers/Tab.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/TextContent.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/TextContentBuilder.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/TextContentProviding.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/InlineAttachmentTextView+AppKit.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/InlineAttachmentTextView+Attachments.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/InlineAttachmentTextView+Layout.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/InlineAttachmentTextView+Storage.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/InlineAttachmentTextView+UIKit.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/InlineAttachmentTextView.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Layout\ Engine/TextLayoutEngine.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Layout\ Engine/TextLayoutEngineModifier.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/PlatformFontViewModifier.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/PlatformTypes.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/TextAttributeConverter.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/TextViewRenderConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/SwiftUI/_TextView_AppKit.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/SwiftUI/_TextView_UIKit.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/TextView.Initializers.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/TextView.swift -target arm64-apple-watchos9.0 -module-can-import-version UIKit 9127.0.84.1 9127.0.84 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name RichText -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText.abi.json
SwiftCompile normal arm64 (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ NSTextRange++.swift,\ NSWritingDirection++.swift,\ Text.LineStyle++.swift,\ InlineView.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSTextRange++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSWritingDirection++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/Text.LineStyle++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ &\ Fragments/Fragment\ Containers/InlineView.swift (in target 'RichText' from project 'RichText')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSTextRange++.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile NSTextRange++.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSWritingDirection++.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile NSWritingDirection++.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/Text.LineStyle++.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Text.LineStyle++.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ &\ Fragments/Fragment\ Containers/InlineView.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile InlineView.swift
SwiftCompile normal arm64 Compiling\ TextAttributeConverter.swift,\ TextViewRenderConfiguration.swift,\ _TextView_AppKit.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/TextAttributeConverter.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/TextViewRenderConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/SwiftUI/_TextView_AppKit.swift (in target 'RichText' from project 'RichText')
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:16:31: error: cannot find type 'UIViewRepresentable' in scope
14 | typealias PlatformColor = NSColor
15 | #elseif canImport(UIKit)
16 | typealias ViewRepresentable = UIViewRepresentable
| `- error: cannot find type 'UIViewRepresentable' in scope
17 | typealias RepresentableContext = UIViewRepresentableContext
18 | typealias PlatformColor = UIColor
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:17:34: error: cannot find type 'UIViewRepresentableContext' in scope
15 | #elseif canImport(UIKit)
16 | typealias ViewRepresentable = UIViewRepresentable
17 | typealias RepresentableContext = UIViewRepresentableContext
| `- error: cannot find type 'UIViewRepresentableContext' in scope
18 | typealias PlatformColor = UIColor
19 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:151:21: error: cannot find type 'PlatformTextView' in scope
149 | @MainActor
150 | static func mergeRenderConfigurationIntoTextView(
151 | _ textView: PlatformTextView,
| `- error: cannot find type 'PlatformTextView' in scope
152 | configuration: TextViewRenderConfiguration
153 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:172:26: error: 'NSTextContainer' is unavailable in watchOS
170 |
171 | private static func updateTextContainer(
172 | _ textContainer: NSTextContainer,
| `- error: 'NSTextContainer' is unavailable in watchOS
173 | configuration: TextViewRenderConfiguration
174 | ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextViewRenderConfiguration.swift:17:22: error: cannot find type 'PlatformFont' in scope
15 | }
16 |
17 | var defaultFont: PlatformFont?
| `- error: cannot find type 'PlatformFont' in scope
18 | var fontResolutionContext: Font.Context
19 | var multilineTextAlignment: TextAlignment
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:75:32: error: cannot find type 'PlatformFont' in scope
73 | let platformFont = font
74 | .resolve(in: configuration.fontResolutionContext)
75 | .ctFont as PlatformFont
| `- error: cannot find type 'PlatformFont' in scope
76 | convertedAttributes[.font] = platformFont
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextViewRenderConfiguration.swift:63:15: error: cannot find type 'PlatformFont' in scope
61 | extension AttributedString.LineHeight {
62 | func _richTextLineHeightSetting(
63 | font: PlatformFont?
| `- error: cannot find type 'PlatformFont' in scope
64 | ) -> TextViewRenderConfiguration.LineHeightSetting {
65 | let decoded = try? JSONDecoder().decode(
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:103:58: error: cannot find type 'PlatformFont' in scope
101 | let lineHeight = swiftUIAttributes.lineHeight {
102 | let lineHeightSetting = lineHeight._richTextLineHeightSetting(
103 | font: convertedAttributes[.font] as? PlatformFont
| `- error: cannot find type 'PlatformFont' in scope
104 | )
105 | attributes.mergeParagraphStyle(mergePolicy: .keepCurrent) { paragraphStyle in
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:22:42: error: cannot find type 'PlatformFont' in scope
20 | /// ```
21 | @inlinable
22 | public nonisolated func font(_ font: PlatformFont?) -> some View {
| `- error: cannot find type 'PlatformFont' in scope
23 | modifier(_PlatformFontModifier(font: font))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:165:28: error: 'NSTextContainer' is unavailable in watchOS
163 | #endif
164 |
165 | let textContainer: NSTextContainer? = textView.textContainer
| `- error: 'NSTextContainer' is unavailable in watchOS
166 | if let textContainer {
167 | updateTextContainer(textContainer, configuration: configuration)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:176:23: error: 'maximumNumberOfLines' is unavailable in watchOS
174 | ) {
175 | let lineLimit = configuration.lineLimit ?? 0
176 | textContainer.maximumNumberOfLines = lineLimit
| `- error: 'maximumNumberOfLines' is unavailable in watchOS
177 | textContainer.lineBreakMode = NSLineBreakMode(
178 | configuration.truncationMode,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:119:45: note: 'maximumNumberOfLines' has been explicitly marked unavailable here
117 | /// The default value of this property is `0`, which indicates that there is no
118 | /// limit.
119 | @property (NS_NONATOMIC_IOSONLY) NSUInteger maximumNumberOfLines API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'maximumNumberOfLines' has been explicitly marked unavailable here
120 |
121 | /**************************** Line fragments ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:177:23: error: 'lineBreakMode' is unavailable in watchOS
175 | let lineLimit = configuration.lineLimit ?? 0
176 | textContainer.maximumNumberOfLines = lineLimit
177 | textContainer.lineBreakMode = NSLineBreakMode(
| `- error: 'lineBreakMode' is unavailable in watchOS
178 | configuration.truncationMode,
179 | lineLimit: lineLimit
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:89:50: note: 'lineBreakMode' has been explicitly marked unavailable here
87 | /// truncated. The default value of this property is
88 | /// ``NSLineBreakMode/byWordWrapping``.
89 | @property (NS_NONATOMIC_IOSONLY) NSLineBreakMode lineBreakMode API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'lineBreakMode' has been explicitly marked unavailable here
90 |
91 | /// An array of path objects that represents the regions where text doesn't display in the text container.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextViewRenderConfiguration.swift:48:28: error: cannot find type 'PlatformFont' in scope
46 | let resolvedFont = (environmentValues.font ?? .default)
47 | .resolve(in: environmentValues.fontResolutionContext)
48 | .ctFont as PlatformFont
| `- error: cannot find type 'PlatformFont' in scope
49 | defaultFont = resolvedFont
50 | lineHeightSetting = environmentValues.lineHeight?._richTextLineHeightSetting(
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/TextAttributeConverter.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile TextAttributeConverter.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/TextViewRenderConfiguration.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile TextViewRenderConfiguration.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/SwiftUI/_TextView_AppKit.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile _TextView_AppKit.swift
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ RichText (in target 'RichText' from project 'RichText')
SwiftCompile normal arm64_32 (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-25 20:46:20.056 xcodebuild[627:3901] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftEmitModule normal arm64 Emitting\ module\ for\ RichText (in target 'RichText' from project 'RichText')
SwiftCompile normal arm64 (in target 'RichText' from project 'RichText')
Building workspace RichText with scheme RichText
(3 failures)
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
RichText: /Users/admin/builder/spi-builder-workspace
resolved source packages: RichText
2026-09-25 20:46:30.028 xcodebuild[814:4873] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "RichText",
"name" : "RichText",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "RichText",
"targets" : [
"RichText"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "RichText",
"module_type" : "SwiftTarget",
"name" : "RichText",
"path" : "Sources/RichText",
"product_memberships" : [
"RichText"
],
"sources" : [
"Attributes & Attachments/AttributeContainer++.swift",
"Attributes & Attachments/Attributes/InlineHostingAttachmentAttribute.swift",
"Attributes & Attachments/HostedAttachmentSizing.swift",
"Attributes & Attachments/InlineHostingAttachment.swift",
"Attributes & Attachments/InlineHostingAttachmentViewProvider.swift",
"Attributes & Attachments/RichTextAttributes.swift",
"Helpers/NSLineBreakMode++.swift",
"Helpers/NSTextAlignment++.swift",
"Helpers/NSTextRange++.swift",
"Helpers/NSWritingDirection++.swift",
"Helpers/Text.LineStyle++.swift",
"Text Content & Fragments/Fragment Containers/InlineView.swift",
"Text Content & Fragments/Fragment Containers/LineBreak.swift",
"Text Content & Fragments/Fragment Containers/Paragraph.swift",
"Text Content & Fragments/Fragment Containers/Space.swift",
"Text Content & Fragments/Fragment Containers/Tab.swift",
"Text Content & Fragments/TextContent.swift",
"Text Content & Fragments/TextContentBuilder.swift",
"Text Content & Fragments/TextContentProviding.swift",
"Text View/InlineAttachmentTextView+AppKit.swift",
"Text View/InlineAttachmentTextView+Attachments.swift",
"Text View/InlineAttachmentTextView+Layout.swift",
"Text View/InlineAttachmentTextView+Storage.swift",
"Text View/InlineAttachmentTextView+UIKit.swift",
"Text View/InlineAttachmentTextView.swift",
"Text View/Layout Engine/TextLayoutEngine.swift",
"Text View/Layout Engine/TextLayoutEngineModifier.swift",
"Text View/Support/PlatformFontViewModifier.swift",
"Text View/Support/PlatformTypes.swift",
"Text View/Support/TextAttributeConverter.swift",
"Text View/Support/TextViewRenderConfiguration.swift",
"Text View/SwiftUI/_TextView_AppKit.swift",
"Text View/SwiftUI/_TextView_UIKit.swift",
"TextView.Initializers.swift",
"TextView.swift"
],
"target_dependencies" : [
"Introspection"
],
"type" : "library"
},
{
"c99name" : "Introspection",
"module_type" : "SwiftTarget",
"name" : "Introspection",
"path" : "Sources/Introspection",
"product_memberships" : [
"RichText"
],
"sources" : [
"SwiftUI/Text/Helpers/FormatStyle++.swift",
"SwiftUI/Text/Helpers/_FormatParser.swift",
"SwiftUI/Text/Helpers/_InterpolationValue.swift",
"SwiftUI/Text/ResolvedLocalizedStringKey.swift",
"SwiftUI/Text/TextStorage.swift",
"SwiftUI/ViewIdentity.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
{
"workspace" : {
"name" : "RichText",
"schemes" : [
"RichText"
]
}
}
2026-09-25 20:46:31.286 xcodebuild[822:4945] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme RichText -destination generic/platform=watchOS
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme RichText -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
RichText: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (3 targets)
Target 'RichText-product' in project 'RichText'
➜ Explicit dependency on target 'RichText' in project 'RichText'
➜ Explicit dependency on target 'Introspection' in project 'RichText'
Target 'RichText' in project 'RichText'
➜ Explicit dependency on target 'Introspection' in project 'RichText'
Target 'Introspection' in project 'RichText' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache
SwiftDriver RichText normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name RichText -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64_32-apple-watchos9.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText-OutputFileMap.json -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -sdk-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -package-name spi_builder_workspace -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver Introspection normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'Introspection' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name Introspection -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/Objects-normal/arm64_32/Introspection.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64_32-apple-watchos9.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/Objects-normal/arm64_32/Introspection-OutputFileMap.json -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -sdk-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/Objects-normal/arm64_32/Introspection.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/Objects-normal/arm64_32/Introspection-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -package-name spi_builder_workspace -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/Objects-normal/arm64_32/Introspection_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/Objects-normal/arm64_32/Introspection-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver RichText normal arm64 com.apple.xcode.tools.swift.compiler (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name RichText -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64-apple-watchos9.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText-OutputFileMap.json -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -sdk-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -package-name spi_builder_workspace -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64/RichText-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver Introspection normal arm64 com.apple.xcode.tools.swift.compiler (in target 'Introspection' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name Introspection -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/Objects-normal/arm64/Introspection.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64-apple-watchos9.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/Objects-normal/arm64/Introspection-OutputFileMap.json -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -sdk-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/Objects-normal/arm64/Introspection.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/Objects-normal/arm64/Introspection-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -package-name spi_builder_workspace -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/Objects-normal/arm64/Introspection_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/Introspection-t.build/Objects-normal/arm64/Introspection-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftEmitModule normal arm64 Emitting\ module\ for\ Introspection (in target 'Introspection' from project 'RichText')
SwiftCompile normal arm64 (in target 'Introspection' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ ViewIdentity.swift /Users/admin/builder/spi-builder-workspace/Sources/Introspection/SwiftUI/ViewIdentity.swift (in target 'Introspection' from project 'RichText')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Introspection/SwiftUI/ViewIdentity.swift (in target 'Introspection' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ViewIdentity.swift
SwiftCompile normal arm64 Compiling\ ResolvedLocalizedStringKey.swift /Users/admin/builder/spi-builder-workspace/Sources/Introspection/SwiftUI/Text/ResolvedLocalizedStringKey.swift (in target 'Introspection' from project 'RichText')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Introspection/SwiftUI/Text/ResolvedLocalizedStringKey.swift (in target 'Introspection' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ResolvedLocalizedStringKey.swift
SwiftCompile normal arm64 Compiling\ TextStorage.swift /Users/admin/builder/spi-builder-workspace/Sources/Introspection/SwiftUI/Text/TextStorage.swift (in target 'Introspection' from project 'RichText')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Introspection/SwiftUI/Text/TextStorage.swift (in target 'Introspection' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile TextStorage.swift
SwiftCompile normal arm64_32 Compiling\ ViewIdentity.swift /Users/admin/builder/spi-builder-workspace/Sources/Introspection/SwiftUI/ViewIdentity.swift (in target 'Introspection' from project 'RichText')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/Introspection/SwiftUI/ViewIdentity.swift (in target 'Introspection' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ViewIdentity.swift
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ Introspection (in target 'Introspection' from project 'RichText')
SwiftCompile normal arm64_32 (in target 'Introspection' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64_32 Compiling\ TextStorage.swift /Users/admin/builder/spi-builder-workspace/Sources/Introspection/SwiftUI/Text/TextStorage.swift (in target 'Introspection' from project 'RichText')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/Introspection/SwiftUI/Text/TextStorage.swift (in target 'Introspection' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile TextStorage.swift
SwiftCompile normal arm64_32 Compiling\ ResolvedLocalizedStringKey.swift /Users/admin/builder/spi-builder-workspace/Sources/Introspection/SwiftUI/Text/ResolvedLocalizedStringKey.swift (in target 'Introspection' from project 'RichText')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/Introspection/SwiftUI/Text/ResolvedLocalizedStringKey.swift (in target 'Introspection' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ResolvedLocalizedStringKey.swift
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ RichText (in target 'RichText' from project 'RichText')
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:169:27: error: cannot find type 'PlatformView' in scope
167 |
168 | @MainActor
169 | lazy var hostingView: PlatformView = {
| `- error: cannot find type 'PlatformView' in scope
170 | #if canImport(AppKit)
171 | let hostingController = NSHostingController(rootView: hostingRootView)
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:25:36: error: cannot find type 'UIHostingController' in scope
23 |
24 | #if canImport(UIKit)
25 | private var hostingController: UIHostingController<AnyView>?
| `- error: cannot find type 'UIHostingController' in scope
26 | #endif
27 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:104:25: error: cannot find type 'PlatformView' in scope
102 |
103 | public override func viewProvider(
104 | for parentView: PlatformView?,
| `- error: cannot find type 'PlatformView' in scope
105 | location: any NSTextLocation,
106 | textContainer: NSTextContainer?
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:106:24: error: 'NSTextContainer' is unavailable in watchOS
104 | for parentView: PlatformView?,
105 | location: any NSTextLocation,
106 | textContainer: NSTextContainer?
| `- error: 'NSTextContainer' is unavailable in watchOS
107 | ) -> NSTextAttachmentViewProvider? {
108 | InlineHostingAttachmentViewProvider(
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:107:10: error: 'NSTextAttachmentViewProvider' is unavailable in watchOS
105 | location: any NSTextLocation,
106 | textContainer: NSTextContainer?
107 | ) -> NSTextAttachmentViewProvider? {
| `- error: 'NSTextAttachmentViewProvider' is unavailable in watchOS
108 | InlineHostingAttachmentViewProvider(
109 | textAttachment: self,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h:244:12: note: 'NSTextAttachmentViewProvider' has been explicitly marked unavailable here
242 | /// iOS 15 and later.
243 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
244 | @interface NSTextAttachmentViewProvider : NSObject
| `- note: 'NSTextAttachmentViewProvider' has been explicitly marked unavailable here
245 | /// Creates a new text attachment view whose content starts at the location you provide.
246 | ///
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:120:10: error: cannot find type 'PlatformImage' in scope
118 | textContainer: NSTextContainer?,
119 | characterIndex charIndex: Int
120 | ) -> PlatformImage? {
| `- error: cannot find type 'PlatformImage' in scope
121 | nil
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:118:24: error: 'NSTextContainer' is unavailable in watchOS
116 | public override func image(
117 | forBounds imageBounds: CGRect,
118 | textContainer: NSTextContainer?,
| `- error: 'NSTextContainer' is unavailable in watchOS
119 | characterIndex charIndex: Int
120 | ) -> PlatformImage? {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:125:28: error: 'NSTextContainer' is unavailable in watchOS
123 |
124 | public override func attachmentBounds(
125 | for textContainer: NSTextContainer?,
| `- error: 'NSTextContainer' is unavailable in watchOS
126 | proposedLineFragment lineFragment: CGRect,
127 | glyphPosition position: CGPoint,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:124:26: error: cannot override 'attachmentBounds' which has been marked unavailable
122 | }
123 |
124 | public override func attachmentBounds(
| |- error: cannot override 'attachmentBounds' which has been marked unavailable
| `- note: remove 'override' modifier to declare a new 'attachmentBounds'
125 | for textContainer: NSTextContainer?,
126 | proposedLineFragment lineFragment: CGRect,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h:326:1: note: 'attachmentBounds(for:proposedLineFragment:glyphPosition:characterIndex:)' has been explicitly marked unavailable here
324 |
325 | // Returns the layout bounds to the layout manager. The bounds origin is interpreted to match position inside lineFrag. The NSTextAttachment implementation returns -bounds if not CGRectZero; otherwise, it derives the bounds value from -[image size]. Conforming objects can implement more sophisticated logic for negotiating the frame size based on the available container space and proposed line fragment rect.
326 | - (CGRect)attachmentBoundsForTextContainer:(nullable NSTextContainer *)textContainer proposedLineFragment:(CGRect)lineFrag glyphPosition:(CGPoint)position characterIndex:(NSUInteger)charIndex API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'attachmentBounds(for:proposedLineFragment:glyphPosition:characterIndex:)' has been explicitly marked unavailable here
327 |
328 | @end
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:176:33: error: cannot find 'UIHostingController' in scope
174 | return hostingController.view
175 | #elseif canImport(UIKit)
176 | let hostingController = UIHostingController(rootView: hostingRootView)
| `- error: cannot find 'UIHostingController' in scope
177 | hostingController.view.backgroundColor = .clear
178 | self.hostingController = hostingController
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:276:48: error: cannot find type 'PlatformFont' in scope
274 | }
275 |
276 | static func baselineDescentRatio(for font: PlatformFont?) -> CGFloat {
| `- error: cannot find type 'PlatformFont' in scope
277 | guard let font else { return 0.2 }
278 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachmentViewProvider.swift:17:21: error: cannot find type 'PlatformView' in scope
15 | override init(
16 | textAttachment: NSTextAttachment,
17 | parentView: PlatformView?,
| `- error: cannot find type 'PlatformView' in scope
18 | textLayoutManager: NSTextLayoutManager?,
19 | location: any NSTextLocation
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachmentViewProvider.swift:18:28: error: 'NSTextLayoutManager' is unavailable in watchOS
16 | textAttachment: NSTextAttachment,
17 | parentView: PlatformView?,
18 | textLayoutManager: NSTextLayoutManager?,
| `- error: 'NSTextLayoutManager' is unavailable in watchOS
19 | location: any NSTextLocation
20 | ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutManager.h:66:12: note: 'NSTextLayoutManager' has been explicitly marked unavailable here
64 | /// participates in the content layout process.
65 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
66 | @interface NSTextLayoutManager : NSObject <NSSecureCoding, NSTextSelectionDataSource>
| `- note: 'NSTextLayoutManager' has been explicitly marked unavailable here
67 | #pragma mark Initialization
68 | /// Creates a new text layout manager.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachmentViewProvider.swift:32:34: error: cannot find type 'PlatformView' in scope
30 | }
31 |
32 | weak var richTextParentView: PlatformView?
| `- error: cannot find type 'PlatformView' in scope
33 |
34 | override func loadView() {
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachmentViewProvider.swift:39:39: error: cannot find type 'PlatformView' in scope
37 | }
38 |
39 | private func makeHostingView() -> PlatformView {
| `- error: cannot find type 'PlatformView' in scope
40 | guard let inlineHostingAttachment else {
41 | preconditionFailure("InlineHostingAttachmentViewProvider requires an InlineHostingAttachment.")
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachmentViewProvider.swift:60:24: error: 'NSTextContainer' is unavailable in watchOS
58 | for attributes: [NSAttributedString.Key: Any],
59 | location: any NSTextLocation,
60 | textContainer: NSTextContainer?,
| `- error: 'NSTextContainer' is unavailable in watchOS
61 | proposedLineFragment: CGRect,
62 | position: CGPoint
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachmentViewProvider.swift:10:50: error: 'NSTextAttachmentViewProvider' is unavailable in watchOS
8 | import SwiftUI
9 |
10 | final class InlineHostingAttachmentViewProvider: NSTextAttachmentViewProvider {
| `- error: 'NSTextAttachmentViewProvider' is unavailable in watchOS
11 | private var inlineHostingAttachment: InlineHostingAttachment? {
12 | self.textAttachment as? InlineHostingAttachment
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h:244:12: note: 'NSTextAttachmentViewProvider' has been explicitly marked unavailable here
242 | /// iOS 15 and later.
243 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
244 | @interface NSTextAttachmentViewProvider : NSObject
| `- note: 'NSTextAttachmentViewProvider' has been explicitly marked unavailable here
245 | /// Creates a new text attachment view whose content starts at the location you provide.
246 | ///
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/RichTextAttributes.swift:15:36: warning: cannot use struct 'UIKitAttributes' in a property declaration member of a type not marked '@_implementationOnly'; 'UIKit' was not imported by this file
13 | let appKit: AttributeScopes.AppKitAttributes
14 | #else
15 | let uiKit: AttributeScopes.UIKitAttributes
| `- warning: cannot use struct 'UIKitAttributes' in a property declaration member of a type not marked '@_implementationOnly'; 'UIKit' was not imported by this file
16 | #endif
17 |
UIKit.AttributeScopes.UIKitAttributes:2:15: note: struct declared here
1 | enum AttributeScopes {
2 | public struct UIKitAttributes : AttributeScope, ~Sendable {
| `- note: struct declared here
3 | public let font: AttributeScopes.UIKitAttributes.FontAttribute
4 | public let paragraphStyle: AttributeScopes.UIKitAttributes.ParagraphStyleAttribute
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSTextRange++.swift:11:63: error: 'NSTextContentManager' is unavailable in watchOS
9 |
10 | extension NSTextRange {
11 | convenience init?(_ nsRange: NSRange, textContentManager: NSTextContentManager) {
| `- error: 'NSTextContentManager' is unavailable in watchOS
12 | let documentStart = textContentManager.documentRange.location
13 | let startLocation = textContentManager.location(
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h:144:12: note: 'NSTextContentManager' has been explicitly marked unavailable here
142 | /// ``NSTextLayoutManager`` that is active and focused for editing.
143 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
144 | @interface NSTextContentManager : NSObject <NSTextElementProvider, NSSecureCoding>
| `- note: 'NSTextContentManager' has been explicitly marked unavailable here
145 | #pragma mark Initialization
146 | /// Creates a new content manager.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:10:39: error: cannot find type 'PlatformTextView' in scope
8 | import SwiftUI
9 |
10 | final class InlineAttachmentTextView: PlatformTextView {
| `- error: cannot find type 'PlatformTextView' in scope
11 | var inlineAttachmentViews: [ObjectIdentifier: PlatformView] = [:]
12 | var inlineAttachmentsByID: [AnyHashable: InlineHostingAttachment] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+Attachments.swift:75:28: error: 'NSTextLayoutManager' is unavailable in watchOS
73 | extension InlineAttachmentTextView {
74 | private func updateInlineAttachmentViewsUsingTextKit2(
75 | textLayoutManager: NSTextLayoutManager,
| `- error: 'NSTextLayoutManager' is unavailable in watchOS
76 | visibleAttachmentViews: inout Set<ObjectIdentifier>
77 | ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutManager.h:66:12: note: 'NSTextLayoutManager' has been explicitly marked unavailable here
64 | /// participates in the content layout process.
65 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
66 | @interface NSTextLayoutManager : NSObject <NSSecureCoding, NSTextSelectionDataSource>
| `- note: 'NSTextLayoutManager' has been explicitly marked unavailable here
67 | #pragma mark Initialization
68 | /// Creates a new text layout manager.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+Attachments.swift:194:24: error: 'NSLayoutManager' is unavailable in watchOS
192 | extension InlineAttachmentTextView {
193 | private func updateInlineAttachmentViewsUsingTextKit1(
194 | layoutManager: NSLayoutManager,
| `- error: 'NSLayoutManager' is unavailable in watchOS
195 | textContainer: NSTextContainer,
196 | visibleAttachmentViews: inout Set<ObjectIdentifier>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h:58:12: note: 'NSLayoutManager' has been explicitly marked unavailable here
56 |
57 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0)) API_UNAVAILABLE(watchos)
58 | @interface NSLayoutManager : NSObject <NSSecureCoding>
| `- note: 'NSLayoutManager' has been explicitly marked unavailable here
59 |
60 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+Attachments.swift:195:24: error: 'NSTextContainer' is unavailable in watchOS
193 | private func updateInlineAttachmentViewsUsingTextKit1(
194 | layoutManager: NSLayoutManager,
195 | textContainer: NSTextContainer,
| `- error: 'NSTextContainer' is unavailable in watchOS
196 | visibleAttachmentViews: inout Set<ObjectIdentifier>
197 | ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+Storage.swift:57:25: error: 'NSTextStorage' is unavailable in watchOS
55 | private func appendNewSuffixIfPossible(
56 | from attributedString: NSAttributedString,
57 | to textStorage: NSTextStorage
| `- error: 'NSTextStorage' is unavailable in watchOS
58 | ) -> Bool {
59 | guard attributedString.length > textStorage.length else {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h:46:12: note: 'NSTextStorage' has been explicitly marked unavailable here
44 | /// `edited:range:changeInLength:` to get everything else to happen.
45 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
46 | @interface NSTextStorage : NSMutableAttributedString <NSSecureCoding>
| `- note: 'NSTextStorage' has been explicitly marked unavailable here
47 | /**************************** Pending edit info ****************************/
48 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:29:19: error: method does not override any method from its superclass
27 | }
28 |
29 | override func layoutSubviews() {
| `- error: method does not override any method from its superclass
30 | super.layoutSubviews()
31 | invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:35:18: error: property does not override any property from its superclass
33 | }
34 |
35 | override var intrinsicContentSize: CGSize {
| `- error: property does not override any property from its superclass
36 | CGSize(width: PlatformView.noIntrinsicMetric, height: PlatformView.noIntrinsicMetric)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:39:44: error: 'UITextRange' is unavailable in watchOS
37 | }
38 |
39 | override func attributedText(in range: UITextRange) -> NSAttributedString {
| `- error: 'UITextRange' is unavailable in watchOS
40 | replaceAttachmentWithEquivalentText(
41 | in: super.attributedText(in: range)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h:307:12: note: 'UITextRange' has been explicitly marked unavailable here
305 |
306 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
307 | @interface UITextRange : NSObject
| `- note: 'UITextRange' has been explicitly marked unavailable here
308 |
309 | @property (nonatomic, readonly, getter=isEmpty) BOOL empty; // Whether the range is zero-length.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:39:19: error: method does not override any method from its superclass
37 | }
38 |
39 | override func attributedText(in range: UITextRange) -> NSAttributedString {
| `- error: method does not override any method from its superclass
40 | replaceAttachmentWithEquivalentText(
41 | in: super.attributedText(in: range)
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:45:34: error: 'UITextRange' is unavailable in watchOS
43 | }
44 |
45 | override func text(in range: UITextRange) -> String? {
| `- error: 'UITextRange' is unavailable in watchOS
46 | return attributedText(in: range).string
47 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h:307:12: note: 'UITextRange' has been explicitly marked unavailable here
305 |
306 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
307 | @interface UITextRange : NSObject
| `- note: 'UITextRange' has been explicitly marked unavailable here
308 |
309 | @property (nonatomic, readonly, getter=isEmpty) BOOL empty; // Whether the range is zero-length.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:45:19: error: method does not override any method from its superclass
43 | }
44 |
45 | override func text(in range: UITextRange) -> String? {
| `- error: method does not override any method from its superclass
46 | return attributedText(in: range).string
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:50:19: error: method does not override any method from its superclass
48 |
49 | // TODO: It would be better to have a way to directly modify the copying item for each attachment. `NSItemProviderWriting` is not working here.
50 | override func copy(_ sender: Any?) {
| `- error: method does not override any method from its superclass
51 | let rangeToCopy: UITextRange
52 | if let selected = selectedTextRange, !selected.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:11:51: error: cannot find type 'PlatformView' in scope
9 |
10 | final class InlineAttachmentTextView: PlatformTextView {
11 | var inlineAttachmentViews: [ObjectIdentifier: PlatformView] = [:]
| `- error: cannot find type 'PlatformView' in scope
12 | var inlineAttachmentsByID: [AnyHashable: InlineHostingAttachment] = [:]
13 | var inlineAttachmentRangesByID: [AnyHashable: NSRange] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:124:29: error: 'NSTextContentManager' is unavailable in watchOS
122 | extension InlineAttachmentTextView {
123 | /// The content manager used when the text view operates with TextKit 2.
124 | var textContentManager: NSTextContentManager? {
| `- error: 'NSTextContentManager' is unavailable in watchOS
125 | textLayoutManager?.textContentManager
126 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h:144:12: note: 'NSTextContentManager' has been explicitly marked unavailable here
142 | /// ``NSTextLayoutManager`` that is active and focused for editing.
143 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
144 | @interface NSTextContentManager : NSObject <NSTextElementProvider, NSSecureCoding>
| `- note: 'NSTextContentManager' has been explicitly marked unavailable here
145 | #pragma mark Initialization
146 | /// Creates a new content manager.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:129:30: error: 'NSTextContentStorage' is unavailable in watchOS
127 |
128 | /// The content storage used when the text view operates with TextKit 2.
129 | var _textContentStorage: NSTextContentStorage? {
| `- error: 'NSTextContentStorage' is unavailable in watchOS
130 | textContentManager as? NSTextContentStorage
131 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h:303:12: note: 'NSTextContentStorage' has been explicitly marked unavailable here
301 | /// the backing store.
302 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
303 | @interface NSTextContentStorage : NSTextContentManager <NSTextStorageObserving>
| `- note: 'NSTextContentStorage' has been explicitly marked unavailable here
304 | #pragma mark Basic properties
305 | /// The delegate for the content storage object.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:134:25: error: 'NSLayoutManager' is unavailable in watchOS
132 |
133 | /// The legacy layout manager used when the text view operates with TextKit 1.
134 | var _layoutManager: NSLayoutManager? {
| `- error: 'NSLayoutManager' is unavailable in watchOS
135 | self.layoutManager
136 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h:58:12: note: 'NSLayoutManager' has been explicitly marked unavailable here
56 |
57 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0)) API_UNAVAILABLE(watchos)
58 | @interface NSLayoutManager : NSObject <NSSecureCoding>
| `- note: 'NSLayoutManager' has been explicitly marked unavailable here
59 |
60 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:141:25: error: 'NSTextContainer' is unavailable in watchOS
139 | ///
140 | /// For UIKit, this is guaranteed to be non-`nil`. For AppKit, this could be `nil`.
141 | var _textContainer: NSTextContainer? {
| `- error: 'NSTextContainer' is unavailable in watchOS
142 | self.textContainer
143 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:148:23: error: 'NSTextStorage' is unavailable in watchOS
146 | ///
147 | /// For UIKit, this is guaranteed to be non-`nil`. For AppKit, this could be `nil`.
148 | var _textStorage: NSTextStorage? {
| `- error: 'NSTextStorage' is unavailable in watchOS
149 | self.textStorage
150 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h:46:12: note: 'NSTextStorage' has been explicitly marked unavailable here
44 | /// `edited:range:changeInLength:` to get everything else to happen.
45 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
46 | @interface NSTextStorage : NSMutableAttributedString <NSSecureCoding>
| `- note: 'NSTextStorage' has been explicitly marked unavailable here
47 | /**************************** Pending edit info ****************************/
48 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:171:27: error: cannot find type 'PlatformFont' in scope
169 | }
170 |
171 | func _fixFont(_ font: PlatformFont?, in range: NSRange) {
| `- error: cannot find type 'PlatformFont' in scope
172 | let font: PlatformFont = font ?? {
173 | #if canImport(AppKit)
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:22:42: error: cannot find type 'PlatformFont' in scope
20 | /// ```
21 | @inlinable
22 | public nonisolated func font(_ font: PlatformFont?) -> some View {
| `- error: cannot find type 'PlatformFont' in scope
23 | modifier(_PlatformFontModifier(font: font))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:29:35: error: cannot find type 'PlatformFont' in scope
27 | @usableFromInline
28 | struct _PlatformFontModifier: ViewModifier {
29 | nonisolated(unsafe) var font: PlatformFont?
| `- error: cannot find type 'PlatformFont' in scope
30 |
31 | @usableFromInline
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:32:28: error: cannot find type 'PlatformFont' in scope
30 |
31 | @usableFromInline
32 | nonisolated init(font: PlatformFont?) {
| `- error: cannot find type 'PlatformFont' in scope
33 | self.font = font
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:50:30: error: cannot find type 'PlatformFont' in scope
48 |
49 | struct FallbackPlatformFont: EnvironmentKey {
50 | static var defaultValue: PlatformFont {
| `- error: cannot find type 'PlatformFont' in scope
51 | .systemFont(ofSize: PlatformFont.systemFontSize)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:49:8: error: type 'FallbackPlatformFont' does not conform to protocol 'EnvironmentKey'
47 | }
48 |
49 | struct FallbackPlatformFont: EnvironmentKey {
| |- error: type 'FallbackPlatformFont' does not conform to protocol 'EnvironmentKey'
| `- note: add stubs for conformance
50 | static var defaultValue: PlatformFont {
51 | .systemFont(ofSize: PlatformFont.systemFontSize)
SwiftUI.EnvironmentKey.Value:2:16: note: protocol requires nested type 'Value'
1 | protocol EnvironmentKey {
2 | associatedtype Value}
| `- note: protocol requires nested type 'Value'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:57:31: error: cannot find type 'PlatformFont' in scope
55 | extension EnvironmentValues {
56 | @usableFromInline
57 | var fallbackPlatformFont: PlatformFont? {
| `- error: cannot find type 'PlatformFont' in scope
58 | get { self[FallbackPlatformFont.self] }
59 | set { self[FallbackPlatformFont.self] = newValue ?? FallbackPlatformFont.defaultValue }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:16:31: error: cannot find type 'UIViewRepresentable' in scope
14 | typealias PlatformColor = NSColor
15 | #elseif canImport(UIKit)
16 | typealias ViewRepresentable = UIViewRepresentable
| `- error: cannot find type 'UIViewRepresentable' in scope
17 | typealias RepresentableContext = UIViewRepresentableContext
18 | typealias PlatformColor = UIColor
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:17:34: error: cannot find type 'UIViewRepresentableContext' in scope
15 | #elseif canImport(UIKit)
16 | typealias ViewRepresentable = UIViewRepresentable
17 | typealias RepresentableContext = UIViewRepresentableContext
| `- error: cannot find type 'UIViewRepresentableContext' in scope
18 | typealias PlatformColor = UIColor
19 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:151:21: error: cannot find type 'PlatformTextView' in scope
149 | @MainActor
150 | static func mergeRenderConfigurationIntoTextView(
151 | _ textView: PlatformTextView,
| `- error: cannot find type 'PlatformTextView' in scope
152 | configuration: TextViewRenderConfiguration
153 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:172:26: error: 'NSTextContainer' is unavailable in watchOS
170 |
171 | private static func updateTextContainer(
172 | _ textContainer: NSTextContainer,
| `- error: 'NSTextContainer' is unavailable in watchOS
173 | configuration: TextViewRenderConfiguration
174 | ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextViewRenderConfiguration.swift:17:22: error: cannot find type 'PlatformFont' in scope
15 | }
16 |
17 | var defaultFont: PlatformFont?
| `- error: cannot find type 'PlatformFont' in scope
18 | var fontResolutionContext: Font.Context
19 | var multilineTextAlignment: TextAlignment
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextViewRenderConfiguration.swift:63:15: error: cannot find type 'PlatformFont' in scope
61 | extension AttributedString.LineHeight {
62 | func _richTextLineHeightSetting(
63 | font: PlatformFont?
| `- error: cannot find type 'PlatformFont' in scope
64 | ) -> TextViewRenderConfiguration.LineHeightSetting {
65 | let decoded = try? JSONDecoder().decode(
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:16:30: error: cannot find type 'Context' in scope
14 | func makeCoordinator() -> Coordinator { Coordinator(self) }
15 |
16 | func makeUIView(context: Context) -> InlineAttachmentTextView {
| `- error: cannot find type 'Context' in scope
17 | let textView = InlineAttachmentTextView(
18 | usingTextLayoutManager: context.environment.usesTextLayoutManager
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:36:70: error: cannot find type 'Context' in scope
34 | }
35 |
36 | func updateUIView(_ textView: InlineAttachmentTextView, context: Context) {
| `- error: cannot find type 'Context' in scope
37 | context.coordinator.parent = self
38 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:57:18: error: cannot find type 'Context' in scope
55 | _ proposal: ProposedViewSize,
56 | uiView: InlineAttachmentTextView,
57 | context: Context
| `- error: cannot find type 'Context' in scope
58 | ) -> CGSize? {
59 | uiView.sizeThatFits(
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:72:34: error: 'UIEditMenuInteraction' is unavailable in watchOS
70 | var parent: _TextView_UIKit
71 | weak var textView: InlineAttachmentTextView?
72 | var editMenuInteraction: UIEditMenuInteraction?
| `- error: 'UIEditMenuInteraction' is unavailable in watchOS
73 |
74 | init(_ parent: _TextView_UIKit) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEditMenuInteraction.h:51:12: note: 'UIEditMenuInteraction' has been explicitly marked unavailable here
49 |
50 | UIKIT_EXTERN API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
51 | @interface UIEditMenuInteraction : NSObject <UIInteraction>
| `- note: 'UIEditMenuInteraction' has been explicitly marked unavailable here
52 |
53 | /// The object that defines the delegate of the interaction.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:79:34: error: 'UIView' is unavailable in watchOS
77 |
78 | func textDraggableView(
79 | _ textDraggableView: UIView & UITextDraggable,
| `- error: 'UIView' is unavailable in watchOS
80 | itemsForDrag dragRequest: UITextDragRequest
81 | ) -> [UIDragItem] {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' has been explicitly marked unavailable here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
| `- note: 'UIView' has been explicitly marked unavailable here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass; // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:79:43: error: 'UITextDraggable' is unavailable in watchOS
77 |
78 | func textDraggableView(
79 | _ textDraggableView: UIView & UITextDraggable,
| `- error: 'UITextDraggable' is unavailable in watchOS
80 | itemsForDrag dragRequest: UITextDragRequest
81 | ) -> [UIDragItem] {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextDragging.h:33:11: note: 'UITextDraggable' has been explicitly marked unavailable here
31 | */
32 | API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos) NS_SWIFT_UI_ACTOR
33 | @protocol UITextDraggable <UITextInput>
| `- note: 'UITextDraggable' has been explicitly marked unavailable here
34 |
35 | @property (nonatomic, weak, nullable) id<UITextDragDelegate> textDragDelegate;
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:80:39: error: 'UITextDragRequest' is unavailable in watchOS
78 | func textDraggableView(
79 | _ textDraggableView: UIView & UITextDraggable,
80 | itemsForDrag dragRequest: UITextDragRequest
| `- error: 'UITextDragRequest' is unavailable in watchOS
81 | ) -> [UIDragItem] {
82 | guard let textView = textDraggableView as? InlineAttachmentTextView else {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextDragging.h:102:11: note: 'UITextDragRequest' has been explicitly marked unavailable here
100 |
101 | API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos) NS_SWIFT_UI_ACTOR
102 | @protocol UITextDragRequest <NSObject>
| `- note: 'UITextDragRequest' has been explicitly marked unavailable here
103 |
104 | @required
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:81:15: error: 'UIDragItem' is unavailable in watchOS
79 | _ textDraggableView: UIView & UITextDraggable,
80 | itemsForDrag dragRequest: UITextDragRequest
81 | ) -> [UIDragItem] {
| `- error: 'UIDragItem' is unavailable in watchOS
82 | guard let textView = textDraggableView as? InlineAttachmentTextView else {
83 | return dragRequest.suggestedItems
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDragItem.h:17:12: note: 'UIDragItem' has been explicitly marked unavailable here
15 |
16 | UIKIT_EXTERN API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos) NS_SWIFT_UI_ACTOR
17 | @interface UIDragItem : NSObject
| `- note: 'UIDragItem' has been explicitly marked unavailable here
18 |
19 | - (instancetype)initWithItemProvider:(NSItemProvider *)itemProvider NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:69:40: error: 'UITextViewDelegate' is unavailable in watchOS
67 | }
68 |
69 | final class Coordinator: NSObject, UITextViewDelegate, UITextDragDelegate {
| `- error: 'UITextViewDelegate' is unavailable in watchOS
70 | var parent: _TextView_UIKit
71 | weak var textView: InlineAttachmentTextView?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextView.h:36:11: note: 'UITextViewDelegate' has been explicitly marked unavailable here
34 |
35 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
36 | @protocol UITextViewDelegate <NSObject, UIScrollViewDelegate>
| `- note: 'UITextViewDelegate' has been explicitly marked unavailable here
37 |
38 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:69:60: error: 'UITextDragDelegate' is unavailable in watchOS
67 | }
68 |
69 | final class Coordinator: NSObject, UITextViewDelegate, UITextDragDelegate {
| `- error: 'UITextDragDelegate' is unavailable in watchOS
70 | var parent: _TextView_UIKit
71 | weak var textView: InlineAttachmentTextView?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextDragging.h:56:11: note: 'UITextDragDelegate' has been explicitly marked unavailable here
54 |
55 | API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos) NS_SWIFT_UI_ACTOR
56 | @protocol UITextDragDelegate <NSObject>
| `- note: 'UITextDragDelegate' has been explicitly marked unavailable here
57 |
58 | @optional
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:11:25: error: cannot find type 'UIViewRepresentable' in scope
9 | import SwiftUI
10 |
11 | struct _TextView_UIKit: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
12 | var content: TextContent
13 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/SwiftUI/_TextView_UIKit.swift:96:49: error: 'UITextRange' is unavailable in watchOS
94 |
95 | private extension InlineAttachmentTextView {
96 | func containsInlineAttachment(in textRange: UITextRange) -> Bool {
| `- error: 'UITextRange' is unavailable in watchOS
97 | let rangeStart = offset(from: beginningOfDocument, to: textRange.start)
98 | let rangeEnd = offset(from: beginningOfDocument, to: textRange.end)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h:307:12: note: 'UITextRange' has been explicitly marked unavailable here
305 |
306 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
307 | @interface UITextRange : NSObject
| `- note: 'UITextRange' has been explicitly marked unavailable here
308 |
309 | @property (nonatomic, readonly, getter=isEmpty) BOOL empty; // Whether the range is zero-length.
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes\ \&\ Attachments/AttributeContainer++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes\ \&\ Attachments/Attributes/InlineHostingAttachmentAttribute.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes\ \&\ Attachments/HostedAttachmentSizing.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes\ \&\ Attachments/InlineHostingAttachment.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes\ \&\ Attachments/InlineHostingAttachmentViewProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes\ \&\ Attachments/RichTextAttributes.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSLineBreakMode++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSTextAlignment++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSTextRange++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSWritingDirection++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/Text.LineStyle++.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/Fragment\ Containers/InlineView.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/Fragment\ Containers/LineBreak.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/Fragment\ Containers/Paragraph.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/Fragment\ Containers/Space.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/Fragment\ Containers/Tab.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/TextContent.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/TextContentBuilder.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ \&\ Fragments/TextContentProviding.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/InlineAttachmentTextView+AppKit.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/InlineAttachmentTextView+Attachments.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/InlineAttachmentTextView+Layout.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/InlineAttachmentTextView+Storage.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/InlineAttachmentTextView+UIKit.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/InlineAttachmentTextView.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Layout\ Engine/TextLayoutEngine.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Layout\ Engine/TextLayoutEngineModifier.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/PlatformFontViewModifier.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/PlatformTypes.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/TextAttributeConverter.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/TextViewRenderConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/SwiftUI/_TextView_AppKit.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/SwiftUI/_TextView_UIKit.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/TextView.Initializers.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/TextView.swift -target arm64_32-apple-watchos9.0 -module-can-import-version UIKit 9127.0.84.1 9127.0.84 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText-dependencies-1.json -enable-objc-interop -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name RichText -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText_const_extract_protocols.json -disable-clang-spi -clang-target arm64_32-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/RichText.build/Debug-watchos/RichText-t.build/Objects-normal/arm64_32/RichText.abi.json
SwiftCompile normal arm64_32 (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64_32 Compiling\ LineBreak.swift,\ Paragraph.swift,\ Space.swift,\ Tab.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ &\ Fragments/Fragment\ Containers/LineBreak.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ &\ Fragments/Fragment\ Containers/Paragraph.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ &\ Fragments/Fragment\ Containers/Space.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ &\ Fragments/Fragment\ Containers/Tab.swift (in target 'RichText' from project 'RichText')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ &\ Fragments/Fragment\ Containers/LineBreak.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile LineBreak.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ &\ Fragments/Fragment\ Containers/Paragraph.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Paragraph.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ &\ Fragments/Fragment\ Containers/Space.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Space.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ Content\ &\ Fragments/Fragment\ Containers/Tab.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Tab.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ RichText (in target 'RichText' from project 'RichText')
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:169:27: error: cannot find type 'PlatformView' in scope
167 |
168 | @MainActor
169 | lazy var hostingView: PlatformView = {
| `- error: cannot find type 'PlatformView' in scope
170 | #if canImport(AppKit)
171 | let hostingController = NSHostingController(rootView: hostingRootView)
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:25:36: error: cannot find type 'UIHostingController' in scope
23 |
24 | #if canImport(UIKit)
25 | private var hostingController: UIHostingController<AnyView>?
| `- error: cannot find type 'UIHostingController' in scope
26 | #endif
27 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:104:25: error: cannot find type 'PlatformView' in scope
102 |
103 | public override func viewProvider(
104 | for parentView: PlatformView?,
| `- error: cannot find type 'PlatformView' in scope
105 | location: any NSTextLocation,
106 | textContainer: NSTextContainer?
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:106:24: error: 'NSTextContainer' is unavailable in watchOS
104 | for parentView: PlatformView?,
105 | location: any NSTextLocation,
106 | textContainer: NSTextContainer?
| `- error: 'NSTextContainer' is unavailable in watchOS
107 | ) -> NSTextAttachmentViewProvider? {
108 | InlineHostingAttachmentViewProvider(
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:107:10: error: 'NSTextAttachmentViewProvider' is unavailable in watchOS
105 | location: any NSTextLocation,
106 | textContainer: NSTextContainer?
107 | ) -> NSTextAttachmentViewProvider? {
| `- error: 'NSTextAttachmentViewProvider' is unavailable in watchOS
108 | InlineHostingAttachmentViewProvider(
109 | textAttachment: self,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h:244:12: note: 'NSTextAttachmentViewProvider' has been explicitly marked unavailable here
242 | /// iOS 15 and later.
243 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
244 | @interface NSTextAttachmentViewProvider : NSObject
| `- note: 'NSTextAttachmentViewProvider' has been explicitly marked unavailable here
245 | /// Creates a new text attachment view whose content starts at the location you provide.
246 | ///
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:120:10: error: cannot find type 'PlatformImage' in scope
118 | textContainer: NSTextContainer?,
119 | characterIndex charIndex: Int
120 | ) -> PlatformImage? {
| `- error: cannot find type 'PlatformImage' in scope
121 | nil
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:118:24: error: 'NSTextContainer' is unavailable in watchOS
116 | public override func image(
117 | forBounds imageBounds: CGRect,
118 | textContainer: NSTextContainer?,
| `- error: 'NSTextContainer' is unavailable in watchOS
119 | characterIndex charIndex: Int
120 | ) -> PlatformImage? {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:125:28: error: 'NSTextContainer' is unavailable in watchOS
123 |
124 | public override func attachmentBounds(
125 | for textContainer: NSTextContainer?,
| `- error: 'NSTextContainer' is unavailable in watchOS
126 | proposedLineFragment lineFragment: CGRect,
127 | glyphPosition position: CGPoint,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:124:26: error: cannot override 'attachmentBounds' which has been marked unavailable
122 | }
123 |
124 | public override func attachmentBounds(
| |- error: cannot override 'attachmentBounds' which has been marked unavailable
| `- note: remove 'override' modifier to declare a new 'attachmentBounds'
125 | for textContainer: NSTextContainer?,
126 | proposedLineFragment lineFragment: CGRect,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h:326:1: note: 'attachmentBounds(for:proposedLineFragment:glyphPosition:characterIndex:)' has been explicitly marked unavailable here
324 |
325 | // Returns the layout bounds to the layout manager. The bounds origin is interpreted to match position inside lineFrag. The NSTextAttachment implementation returns -bounds if not CGRectZero; otherwise, it derives the bounds value from -[image size]. Conforming objects can implement more sophisticated logic for negotiating the frame size based on the available container space and proposed line fragment rect.
326 | - (CGRect)attachmentBoundsForTextContainer:(nullable NSTextContainer *)textContainer proposedLineFragment:(CGRect)lineFrag glyphPosition:(CGPoint)position characterIndex:(NSUInteger)charIndex API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'attachmentBounds(for:proposedLineFragment:glyphPosition:characterIndex:)' has been explicitly marked unavailable here
327 |
328 | @end
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:176:33: error: cannot find 'UIHostingController' in scope
174 | return hostingController.view
175 | #elseif canImport(UIKit)
176 | let hostingController = UIHostingController(rootView: hostingRootView)
| `- error: cannot find 'UIHostingController' in scope
177 | hostingController.view.backgroundColor = .clear
178 | self.hostingController = hostingController
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachment.swift:276:48: error: cannot find type 'PlatformFont' in scope
274 | }
275 |
276 | static func baselineDescentRatio(for font: PlatformFont?) -> CGFloat {
| `- error: cannot find type 'PlatformFont' in scope
277 | guard let font else { return 0.2 }
278 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachmentViewProvider.swift:17:21: error: cannot find type 'PlatformView' in scope
15 | override init(
16 | textAttachment: NSTextAttachment,
17 | parentView: PlatformView?,
| `- error: cannot find type 'PlatformView' in scope
18 | textLayoutManager: NSTextLayoutManager?,
19 | location: any NSTextLocation
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachmentViewProvider.swift:18:28: error: 'NSTextLayoutManager' is unavailable in watchOS
16 | textAttachment: NSTextAttachment,
17 | parentView: PlatformView?,
18 | textLayoutManager: NSTextLayoutManager?,
| `- error: 'NSTextLayoutManager' is unavailable in watchOS
19 | location: any NSTextLocation
20 | ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutManager.h:66:12: note: 'NSTextLayoutManager' has been explicitly marked unavailable here
64 | /// participates in the content layout process.
65 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
66 | @interface NSTextLayoutManager : NSObject <NSSecureCoding, NSTextSelectionDataSource>
| `- note: 'NSTextLayoutManager' has been explicitly marked unavailable here
67 | #pragma mark Initialization
68 | /// Creates a new text layout manager.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachmentViewProvider.swift:32:34: error: cannot find type 'PlatformView' in scope
30 | }
31 |
32 | weak var richTextParentView: PlatformView?
| `- error: cannot find type 'PlatformView' in scope
33 |
34 | override func loadView() {
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachmentViewProvider.swift:39:39: error: cannot find type 'PlatformView' in scope
37 | }
38 |
39 | private func makeHostingView() -> PlatformView {
| `- error: cannot find type 'PlatformView' in scope
40 | guard let inlineHostingAttachment else {
41 | preconditionFailure("InlineHostingAttachmentViewProvider requires an InlineHostingAttachment.")
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachmentViewProvider.swift:60:24: error: 'NSTextContainer' is unavailable in watchOS
58 | for attributes: [NSAttributedString.Key: Any],
59 | location: any NSTextLocation,
60 | textContainer: NSTextContainer?,
| `- error: 'NSTextContainer' is unavailable in watchOS
61 | proposedLineFragment: CGRect,
62 | position: CGPoint
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/InlineHostingAttachmentViewProvider.swift:10:50: error: 'NSTextAttachmentViewProvider' is unavailable in watchOS
8 | import SwiftUI
9 |
10 | final class InlineHostingAttachmentViewProvider: NSTextAttachmentViewProvider {
| `- error: 'NSTextAttachmentViewProvider' is unavailable in watchOS
11 | private var inlineHostingAttachment: InlineHostingAttachment? {
12 | self.textAttachment as? InlineHostingAttachment
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h:244:12: note: 'NSTextAttachmentViewProvider' has been explicitly marked unavailable here
242 | /// iOS 15 and later.
243 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
244 | @interface NSTextAttachmentViewProvider : NSObject
| `- note: 'NSTextAttachmentViewProvider' has been explicitly marked unavailable here
245 | /// Creates a new text attachment view whose content starts at the location you provide.
246 | ///
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Attributes & Attachments/RichTextAttributes.swift:15:36: warning: cannot use struct 'UIKitAttributes' in a property declaration member of a type not marked '@_implementationOnly'; 'UIKit' was not imported by this file
13 | let appKit: AttributeScopes.AppKitAttributes
14 | #else
15 | let uiKit: AttributeScopes.UIKitAttributes
| `- warning: cannot use struct 'UIKitAttributes' in a property declaration member of a type not marked '@_implementationOnly'; 'UIKit' was not imported by this file
16 | #endif
17 |
UIKit.AttributeScopes.UIKitAttributes:2:15: note: struct declared here
1 | enum AttributeScopes {
2 | public struct UIKitAttributes : AttributeScope, ~Sendable {
| `- note: struct declared here
3 | public let font: AttributeScopes.UIKitAttributes.FontAttribute
4 | public let paragraphStyle: AttributeScopes.UIKitAttributes.ParagraphStyleAttribute
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Helpers/NSTextRange++.swift:11:63: error: 'NSTextContentManager' is unavailable in watchOS
9 |
10 | extension NSTextRange {
11 | convenience init?(_ nsRange: NSRange, textContentManager: NSTextContentManager) {
| `- error: 'NSTextContentManager' is unavailable in watchOS
12 | let documentStart = textContentManager.documentRange.location
13 | let startLocation = textContentManager.location(
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h:144:12: note: 'NSTextContentManager' has been explicitly marked unavailable here
142 | /// ``NSTextLayoutManager`` that is active and focused for editing.
143 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
144 | @interface NSTextContentManager : NSObject <NSTextElementProvider, NSSecureCoding>
| `- note: 'NSTextContentManager' has been explicitly marked unavailable here
145 | #pragma mark Initialization
146 | /// Creates a new content manager.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:10:39: error: cannot find type 'PlatformTextView' in scope
8 | import SwiftUI
9 |
10 | final class InlineAttachmentTextView: PlatformTextView {
| `- error: cannot find type 'PlatformTextView' in scope
11 | var inlineAttachmentViews: [ObjectIdentifier: PlatformView] = [:]
12 | var inlineAttachmentsByID: [AnyHashable: InlineHostingAttachment] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+Attachments.swift:75:28: error: 'NSTextLayoutManager' is unavailable in watchOS
73 | extension InlineAttachmentTextView {
74 | private func updateInlineAttachmentViewsUsingTextKit2(
75 | textLayoutManager: NSTextLayoutManager,
| `- error: 'NSTextLayoutManager' is unavailable in watchOS
76 | visibleAttachmentViews: inout Set<ObjectIdentifier>
77 | ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutManager.h:66:12: note: 'NSTextLayoutManager' has been explicitly marked unavailable here
64 | /// participates in the content layout process.
65 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
66 | @interface NSTextLayoutManager : NSObject <NSSecureCoding, NSTextSelectionDataSource>
| `- note: 'NSTextLayoutManager' has been explicitly marked unavailable here
67 | #pragma mark Initialization
68 | /// Creates a new text layout manager.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+Attachments.swift:194:24: error: 'NSLayoutManager' is unavailable in watchOS
192 | extension InlineAttachmentTextView {
193 | private func updateInlineAttachmentViewsUsingTextKit1(
194 | layoutManager: NSLayoutManager,
| `- error: 'NSLayoutManager' is unavailable in watchOS
195 | textContainer: NSTextContainer,
196 | visibleAttachmentViews: inout Set<ObjectIdentifier>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h:58:12: note: 'NSLayoutManager' has been explicitly marked unavailable here
56 |
57 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0)) API_UNAVAILABLE(watchos)
58 | @interface NSLayoutManager : NSObject <NSSecureCoding>
| `- note: 'NSLayoutManager' has been explicitly marked unavailable here
59 |
60 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+Attachments.swift:195:24: error: 'NSTextContainer' is unavailable in watchOS
193 | private func updateInlineAttachmentViewsUsingTextKit1(
194 | layoutManager: NSLayoutManager,
195 | textContainer: NSTextContainer,
| `- error: 'NSTextContainer' is unavailable in watchOS
196 | visibleAttachmentViews: inout Set<ObjectIdentifier>
197 | ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+Storage.swift:57:25: error: 'NSTextStorage' is unavailable in watchOS
55 | private func appendNewSuffixIfPossible(
56 | from attributedString: NSAttributedString,
57 | to textStorage: NSTextStorage
| `- error: 'NSTextStorage' is unavailable in watchOS
58 | ) -> Bool {
59 | guard attributedString.length > textStorage.length else {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h:46:12: note: 'NSTextStorage' has been explicitly marked unavailable here
44 | /// `edited:range:changeInLength:` to get everything else to happen.
45 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
46 | @interface NSTextStorage : NSMutableAttributedString <NSSecureCoding>
| `- note: 'NSTextStorage' has been explicitly marked unavailable here
47 | /**************************** Pending edit info ****************************/
48 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:29:19: error: method does not override any method from its superclass
27 | }
28 |
29 | override func layoutSubviews() {
| `- error: method does not override any method from its superclass
30 | super.layoutSubviews()
31 | invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:35:18: error: property does not override any property from its superclass
33 | }
34 |
35 | override var intrinsicContentSize: CGSize {
| `- error: property does not override any property from its superclass
36 | CGSize(width: PlatformView.noIntrinsicMetric, height: PlatformView.noIntrinsicMetric)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:39:44: error: 'UITextRange' is unavailable in watchOS
37 | }
38 |
39 | override func attributedText(in range: UITextRange) -> NSAttributedString {
| `- error: 'UITextRange' is unavailable in watchOS
40 | replaceAttachmentWithEquivalentText(
41 | in: super.attributedText(in: range)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h:307:12: note: 'UITextRange' has been explicitly marked unavailable here
305 |
306 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
307 | @interface UITextRange : NSObject
| `- note: 'UITextRange' has been explicitly marked unavailable here
308 |
309 | @property (nonatomic, readonly, getter=isEmpty) BOOL empty; // Whether the range is zero-length.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:39:19: error: method does not override any method from its superclass
37 | }
38 |
39 | override func attributedText(in range: UITextRange) -> NSAttributedString {
| `- error: method does not override any method from its superclass
40 | replaceAttachmentWithEquivalentText(
41 | in: super.attributedText(in: range)
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:45:34: error: 'UITextRange' is unavailable in watchOS
43 | }
44 |
45 | override func text(in range: UITextRange) -> String? {
| `- error: 'UITextRange' is unavailable in watchOS
46 | return attributedText(in: range).string
47 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h:307:12: note: 'UITextRange' has been explicitly marked unavailable here
305 |
306 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
307 | @interface UITextRange : NSObject
| `- note: 'UITextRange' has been explicitly marked unavailable here
308 |
309 | @property (nonatomic, readonly, getter=isEmpty) BOOL empty; // Whether the range is zero-length.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:45:19: error: method does not override any method from its superclass
43 | }
44 |
45 | override func text(in range: UITextRange) -> String? {
| `- error: method does not override any method from its superclass
46 | return attributedText(in: range).string
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView+UIKit.swift:50:19: error: method does not override any method from its superclass
48 |
49 | // TODO: It would be better to have a way to directly modify the copying item for each attachment. `NSItemProviderWriting` is not working here.
50 | override func copy(_ sender: Any?) {
| `- error: method does not override any method from its superclass
51 | let rangeToCopy: UITextRange
52 | if let selected = selectedTextRange, !selected.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:11:51: error: cannot find type 'PlatformView' in scope
9 |
10 | final class InlineAttachmentTextView: PlatformTextView {
11 | var inlineAttachmentViews: [ObjectIdentifier: PlatformView] = [:]
| `- error: cannot find type 'PlatformView' in scope
12 | var inlineAttachmentsByID: [AnyHashable: InlineHostingAttachment] = [:]
13 | var inlineAttachmentRangesByID: [AnyHashable: NSRange] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:124:29: error: 'NSTextContentManager' is unavailable in watchOS
122 | extension InlineAttachmentTextView {
123 | /// The content manager used when the text view operates with TextKit 2.
124 | var textContentManager: NSTextContentManager? {
| `- error: 'NSTextContentManager' is unavailable in watchOS
125 | textLayoutManager?.textContentManager
126 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h:144:12: note: 'NSTextContentManager' has been explicitly marked unavailable here
142 | /// ``NSTextLayoutManager`` that is active and focused for editing.
143 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
144 | @interface NSTextContentManager : NSObject <NSTextElementProvider, NSSecureCoding>
| `- note: 'NSTextContentManager' has been explicitly marked unavailable here
145 | #pragma mark Initialization
146 | /// Creates a new content manager.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:129:30: error: 'NSTextContentStorage' is unavailable in watchOS
127 |
128 | /// The content storage used when the text view operates with TextKit 2.
129 | var _textContentStorage: NSTextContentStorage? {
| `- error: 'NSTextContentStorage' is unavailable in watchOS
130 | textContentManager as? NSTextContentStorage
131 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h:303:12: note: 'NSTextContentStorage' has been explicitly marked unavailable here
301 | /// the backing store.
302 | API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), visionos(1.0)) API_UNAVAILABLE(watchos)
303 | @interface NSTextContentStorage : NSTextContentManager <NSTextStorageObserving>
| `- note: 'NSTextContentStorage' has been explicitly marked unavailable here
304 | #pragma mark Basic properties
305 | /// The delegate for the content storage object.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:134:25: error: 'NSLayoutManager' is unavailable in watchOS
132 |
133 | /// The legacy layout manager used when the text view operates with TextKit 1.
134 | var _layoutManager: NSLayoutManager? {
| `- error: 'NSLayoutManager' is unavailable in watchOS
135 | self.layoutManager
136 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h:58:12: note: 'NSLayoutManager' has been explicitly marked unavailable here
56 |
57 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0)) API_UNAVAILABLE(watchos)
58 | @interface NSLayoutManager : NSObject <NSSecureCoding>
| `- note: 'NSLayoutManager' has been explicitly marked unavailable here
59 |
60 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:141:25: error: 'NSTextContainer' is unavailable in watchOS
139 | ///
140 | /// For UIKit, this is guaranteed to be non-`nil`. For AppKit, this could be `nil`.
141 | var _textContainer: NSTextContainer? {
| `- error: 'NSTextContainer' is unavailable in watchOS
142 | self.textContainer
143 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:148:23: error: 'NSTextStorage' is unavailable in watchOS
146 | ///
147 | /// For UIKit, this is guaranteed to be non-`nil`. For AppKit, this could be `nil`.
148 | var _textStorage: NSTextStorage? {
| `- error: 'NSTextStorage' is unavailable in watchOS
149 | self.textStorage
150 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h:46:12: note: 'NSTextStorage' has been explicitly marked unavailable here
44 | /// `edited:range:changeInLength:` to get everything else to happen.
45 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
46 | @interface NSTextStorage : NSMutableAttributedString <NSSecureCoding>
| `- note: 'NSTextStorage' has been explicitly marked unavailable here
47 | /**************************** Pending edit info ****************************/
48 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/InlineAttachmentTextView.swift:171:27: error: cannot find type 'PlatformFont' in scope
169 | }
170 |
171 | func _fixFont(_ font: PlatformFont?, in range: NSRange) {
| `- error: cannot find type 'PlatformFont' in scope
172 | let font: PlatformFont = font ?? {
173 | #if canImport(AppKit)
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:22:42: error: cannot find type 'PlatformFont' in scope
20 | /// ```
21 | @inlinable
22 | public nonisolated func font(_ font: PlatformFont?) -> some View {
| `- error: cannot find type 'PlatformFont' in scope
23 | modifier(_PlatformFontModifier(font: font))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:29:35: error: cannot find type 'PlatformFont' in scope
27 | @usableFromInline
28 | struct _PlatformFontModifier: ViewModifier {
29 | nonisolated(unsafe) var font: PlatformFont?
| `- error: cannot find type 'PlatformFont' in scope
30 |
31 | @usableFromInline
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:32:28: error: cannot find type 'PlatformFont' in scope
30 |
31 | @usableFromInline
32 | nonisolated init(font: PlatformFont?) {
| `- error: cannot find type 'PlatformFont' in scope
33 | self.font = font
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:50:30: error: cannot find type 'PlatformFont' in scope
48 |
49 | struct FallbackPlatformFont: EnvironmentKey {
50 | static var defaultValue: PlatformFont {
| `- error: cannot find type 'PlatformFont' in scope
51 | .systemFont(ofSize: PlatformFont.systemFontSize)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:49:8: error: type 'FallbackPlatformFont' does not conform to protocol 'EnvironmentKey'
47 | }
48 |
49 | struct FallbackPlatformFont: EnvironmentKey {
| |- error: type 'FallbackPlatformFont' does not conform to protocol 'EnvironmentKey'
| `- note: add stubs for conformance
50 | static var defaultValue: PlatformFont {
51 | .systemFont(ofSize: PlatformFont.systemFontSize)
SwiftUI.EnvironmentKey.Value:2:16: note: protocol requires nested type 'Value'
1 | protocol EnvironmentKey {
2 | associatedtype Value}
| `- note: protocol requires nested type 'Value'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:57:31: error: cannot find type 'PlatformFont' in scope
55 | extension EnvironmentValues {
56 | @usableFromInline
57 | var fallbackPlatformFont: PlatformFont? {
| `- error: cannot find type 'PlatformFont' in scope
58 | get { self[FallbackPlatformFont.self] }
59 | set { self[FallbackPlatformFont.self] = newValue ?? FallbackPlatformFont.defaultValue }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:16:31: error: cannot find type 'UIViewRepresentable' in scope
14 | typealias PlatformColor = NSColor
15 | #elseif canImport(UIKit)
16 | typealias ViewRepresentable = UIViewRepresentable
| `- error: cannot find type 'UIViewRepresentable' in scope
17 | typealias RepresentableContext = UIViewRepresentableContext
18 | typealias PlatformColor = UIColor
SwiftCompile normal arm64 (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ TextAttributeConverter.swift,\ TextViewRenderConfiguration.swift,\ _TextView_AppKit.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/TextAttributeConverter.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/TextViewRenderConfiguration.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/SwiftUI/_TextView_AppKit.swift (in target 'RichText' from project 'RichText')
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:16:31: error: cannot find type 'UIViewRepresentable' in scope
14 | typealias PlatformColor = NSColor
15 | #elseif canImport(UIKit)
16 | typealias ViewRepresentable = UIViewRepresentable
| `- error: cannot find type 'UIViewRepresentable' in scope
17 | typealias RepresentableContext = UIViewRepresentableContext
18 | typealias PlatformColor = UIColor
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:17:34: error: cannot find type 'UIViewRepresentableContext' in scope
15 | #elseif canImport(UIKit)
16 | typealias ViewRepresentable = UIViewRepresentable
17 | typealias RepresentableContext = UIViewRepresentableContext
| `- error: cannot find type 'UIViewRepresentableContext' in scope
18 | typealias PlatformColor = UIColor
19 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:151:21: error: cannot find type 'PlatformTextView' in scope
149 | @MainActor
150 | static func mergeRenderConfigurationIntoTextView(
151 | _ textView: PlatformTextView,
| `- error: cannot find type 'PlatformTextView' in scope
152 | configuration: TextViewRenderConfiguration
153 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:172:26: error: 'NSTextContainer' is unavailable in watchOS
170 |
171 | private static func updateTextContainer(
172 | _ textContainer: NSTextContainer,
| `- error: 'NSTextContainer' is unavailable in watchOS
173 | configuration: TextViewRenderConfiguration
174 | ) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextViewRenderConfiguration.swift:17:22: error: cannot find type 'PlatformFont' in scope
15 | }
16 |
17 | var defaultFont: PlatformFont?
| `- error: cannot find type 'PlatformFont' in scope
18 | var fontResolutionContext: Font.Context
19 | var multilineTextAlignment: TextAlignment
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:75:32: error: cannot find type 'PlatformFont' in scope
73 | let platformFont = font
74 | .resolve(in: configuration.fontResolutionContext)
75 | .ctFont as PlatformFont
| `- error: cannot find type 'PlatformFont' in scope
76 | convertedAttributes[.font] = platformFont
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextViewRenderConfiguration.swift:63:15: error: cannot find type 'PlatformFont' in scope
61 | extension AttributedString.LineHeight {
62 | func _richTextLineHeightSetting(
63 | font: PlatformFont?
| `- error: cannot find type 'PlatformFont' in scope
64 | ) -> TextViewRenderConfiguration.LineHeightSetting {
65 | let decoded = try? JSONDecoder().decode(
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:103:58: error: cannot find type 'PlatformFont' in scope
101 | let lineHeight = swiftUIAttributes.lineHeight {
102 | let lineHeightSetting = lineHeight._richTextLineHeightSetting(
103 | font: convertedAttributes[.font] as? PlatformFont
| `- error: cannot find type 'PlatformFont' in scope
104 | )
105 | attributes.mergeParagraphStyle(mergePolicy: .keepCurrent) { paragraphStyle in
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/PlatformFontViewModifier.swift:22:42: error: cannot find type 'PlatformFont' in scope
20 | /// ```
21 | @inlinable
22 | public nonisolated func font(_ font: PlatformFont?) -> some View {
| `- error: cannot find type 'PlatformFont' in scope
23 | modifier(_PlatformFontModifier(font: font))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:165:28: error: 'NSTextContainer' is unavailable in watchOS
163 | #endif
164 |
165 | let textContainer: NSTextContainer? = textView.textContainer
| `- error: 'NSTextContainer' is unavailable in watchOS
166 | if let textContainer {
167 | updateTextContainer(textContainer, configuration: configuration)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:36:12: note: 'NSTextContainer' has been explicitly marked unavailable here
34 | /// restrictions apply to ``NSTextLayoutManager`` and ``NSTextContentStorage``.
35 | UIKIT_EXTERN API_AVAILABLE(macos(10.0), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos)
36 | @interface NSTextContainer : NSObject <NSSecureCoding, NSTextLayoutOrientationProvider>
| `- note: 'NSTextContainer' has been explicitly marked unavailable here
37 |
38 | /**************************** Initialization ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:176:23: error: 'maximumNumberOfLines' is unavailable in watchOS
174 | ) {
175 | let lineLimit = configuration.lineLimit ?? 0
176 | textContainer.maximumNumberOfLines = lineLimit
| `- error: 'maximumNumberOfLines' is unavailable in watchOS
177 | textContainer.lineBreakMode = NSLineBreakMode(
178 | configuration.truncationMode,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:119:45: note: 'maximumNumberOfLines' has been explicitly marked unavailable here
117 | /// The default value of this property is `0`, which indicates that there is no
118 | /// limit.
119 | @property (NS_NONATOMIC_IOSONLY) NSUInteger maximumNumberOfLines API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'maximumNumberOfLines' has been explicitly marked unavailable here
120 |
121 | /**************************** Line fragments ****************************/
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextAttributeConverter.swift:177:23: error: 'lineBreakMode' is unavailable in watchOS
175 | let lineLimit = configuration.lineLimit ?? 0
176 | textContainer.maximumNumberOfLines = lineLimit
177 | textContainer.lineBreakMode = NSLineBreakMode(
| `- error: 'lineBreakMode' is unavailable in watchOS
178 | configuration.truncationMode,
179 | lineLimit: lineLimit
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h:89:50: note: 'lineBreakMode' has been explicitly marked unavailable here
87 | /// truncated. The default value of this property is
88 | /// ``NSLineBreakMode/byWordWrapping``.
89 | @property (NS_NONATOMIC_IOSONLY) NSLineBreakMode lineBreakMode API_AVAILABLE(macos(10.11), ios(7.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'lineBreakMode' has been explicitly marked unavailable here
90 |
91 | /// An array of path objects that represents the regions where text doesn't display in the text container.
/Users/admin/builder/spi-builder-workspace/Sources/RichText/Text View/Support/TextViewRenderConfiguration.swift:48:28: error: cannot find type 'PlatformFont' in scope
46 | let resolvedFont = (environmentValues.font ?? .default)
47 | .resolve(in: environmentValues.fontResolutionContext)
48 | .ctFont as PlatformFont
| `- error: cannot find type 'PlatformFont' in scope
49 | defaultFont = resolvedFont
50 | lineHeightSetting = environmentValues.lineHeight?._richTextLineHeightSetting(
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/TextAttributeConverter.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile TextAttributeConverter.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/TextViewRenderConfiguration.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile TextViewRenderConfiguration.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/SwiftUI/_TextView_AppKit.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile _TextView_AppKit.swift
SwiftCompile normal arm64 Compiling\ TextLayoutEngineModifier.swift,\ PlatformFontViewModifier.swift,\ PlatformTypes.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Layout\ Engine/TextLayoutEngineModifier.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/PlatformFontViewModifier.swift /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/PlatformTypes.swift (in target 'RichText' from project 'RichText')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Layout\ Engine/TextLayoutEngineModifier.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile TextLayoutEngineModifier.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/PlatformFontViewModifier.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PlatformFontViewModifier.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/RichText/Text\ View/Support/PlatformTypes.swift (in target 'RichText' from project 'RichText')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile PlatformTypes.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
2026-09-25 20:46:32.318 xcodebuild[823:4972] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ RichText (in target 'RichText' from project 'RichText')
SwiftCompile normal arm64_32 (in target 'RichText' from project 'RichText')
Building workspace RichText with scheme RichText
(3 failures)
BUILD FAILURE 6.4 watchOS