No such module 'JournalingSuggestions'

I followed this tutorial to add JournalingSuggestions API, but it keeps showing me No such module 'JournalingSuggestions'. How can I fix this?

import SwiftUI
import JournalingSuggestions

struct ContentView: View {
    @State var suggestionTitle: String? = nil
    var body: some View {
        VStack {
            JournalingSuggestionsPicker {
                Text("Select Journaling Suggestion")
            }
            onCompletion: { suggestion in
                suggestionTitle = suggestion.title
            }
            Text(suggestionTitle ?? "")
        }
        .padding()
    }
}


#Preview {
    ContentView()
}
Answered by DTS Engineer in 845917022

You're likely targeting the build for the simulator, and there's some caveats around that. This thread discussing that detail is still relevant. Please additionally open a bug report regarding this and post the FB number here, as the workarounds in that thread should not be needed.

— Ed Ford,  DTS Engineer

You're likely targeting the build for the simulator, and there's some caveats around that. This thread discussing that detail is still relevant. Please additionally open a bug report regarding this and post the FB number here, as the workarounds in that thread should not be needed.

— Ed Ford,  DTS Engineer

I have tried all the methods for those threads, but it still reports an error.

Can you be specific about what you tried from that thread, including exact code snippets?

— Ed Ford,  DTS Engineer

No such module 'JournalingSuggestions'
 
 
Q