WhatsNewKit iOS dependency preventing SwiftUI preview for watchOS app #33

Closed
opened 2025-10-14 15:56:14 -06:00 by navan · 0 comments
Owner

Originally created by @john-work-ios on 9/20/2023

What happened?

XCode 15 + iOS app (min target iOS 15) + watchOS app (min target watchOS 9).
WhatsNewKit as SPM dependency for the iOS app.

Problem: when previewing SwiftUI views for the watch app, I get this error:

`
== PREVIEW UPDATE ERROR:

SchemeBuildError: Failed to build the scheme ”MyAppWatch Watch App”

'SymbolRenderingMode' is only available in watchOS 8.0 or newer

Emitting module for WhatsNewKit:
/Users/user/Library/Developer/Xcode/DerivedData/MyApp-gglszqrqhbbrmqcgpkravwysjmar/SourcePackages/checkouts/WhatsNewKit/Sources/Models/WhatsNew+Feature+Image.swift:110:31: error: 'SymbolRenderingMode' is only available in watchOS 8.0 or newer
        symboldRenderingMode: SymbolRenderingMode?,`

What are the steps to reproduce?

What is the expected behavior?

Do not block SwiftUI previews

*Originally created by @john-work-ios on 9/20/2023* ### What happened? XCode 15 + iOS app (min target iOS 15) + watchOS app (min target watchOS 9). WhatsNewKit as SPM dependency for the iOS app. Problem: when previewing SwiftUI views for the watch app, I get this error: ` == PREVIEW UPDATE ERROR: SchemeBuildError: Failed to build the scheme ”MyAppWatch Watch App” 'SymbolRenderingMode' is only available in watchOS 8.0 or newer Emitting module for WhatsNewKit: /Users/user/Library/Developer/Xcode/DerivedData/MyApp-gglszqrqhbbrmqcgpkravwysjmar/SourcePackages/checkouts/WhatsNewKit/Sources/Models/WhatsNew+Feature+Image.swift:110:31: error: 'SymbolRenderingMode' is only available in watchOS 8.0 or newer symboldRenderingMode: SymbolRenderingMode?,` ### What are the steps to reproduce? - ### What is the expected behavior? Do not block SwiftUI previews
navan 2025-10-14 15:56:15 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/WhatsNewKit#33
No description provided.