Post

Replies

Boosts

Views

Activity

Unknown throws value for method in MusicKit
I'm working on an application that uses MusicKit and I'm trying to access Artists that are in a user's library. When I create the library request then call response(), I can see that it throws. The issue is I don't know what kind of errors can be thrown from this method. Are there specific errors in the MusicKit library that I should expect? let request = MusicLibraryRequest<Artist>() do { let response = try await request.response() return .success(response.items) } catch let error { // what are the possible instances for this error?! return .failure(.unknown(error: error)) }
1
0
255
Aug ’24
[Xcode 15.0 beta 5] [macOS Sonoma beta 4] SwiftData, symbol not found.
Hey everyone, I'm trying to add SwiftData to my project and I have the following model: @Model final class Folder { @Attribute(.unique) let id: UUID var name: String init(name: String) { self.id = UUID() self.name = name } } Since adding this model, I am unable to launch my app. I receive the following error in the console: Symbol not found: _$s9SwiftData014DefaultBackingB0C3forACyxGxm_tcfC What would be causing my project to longer build after adding SwiftData?
1
0
684
Aug ’23