Making FetchRequest from CoreData in IntentHandler for WidgetKit

I am trying to create WidgetKit with IntentConfiguration, it works fine if I have a static hardcoded Objects it loads into the IntentHandler and allows the user choose the desired object from the list. But my issue when the user store specific objects as favorite for example in CoreData, I can fetch them in the App Fine, but when the intent handler does the request, it hangs with the spinning wheel from choose and nothing happens. I am not sure what is the best thing to do here, I am requesting only some keys, and I have my CoreData setup in a shared Swift Package, but whenever I try to access it from WidgetKit Extension or my IntentHandler it keep spinning and nothing else happens.
It might be crashing somewhere inside provide[Type]OptionsCollection(for: with:) or the completionHandler isn't called.

You can debug your intent by running your intent scheme. Xcode will prompt you for an application, select yours and then go back to the home screen to edit your widget. Putting a breakpoint in that function should at least point you in the right direction.
I have the same issue, I can not fetch from the IntentHandler.swift so in my App I created an array of values when the appp opens and closes that saves some values to an array in the app group,

Code Block
let defaults = UserDefaults.init(suiteName: "group.my-app")!
defaults.setValue(CoreDataStack.createArrayOfContactsForWidget(), forKey: "ContactsForWidgetIntent")


Code Block
static func createArrayOfContactsForWidget() -> [String] {
        var arrayOfContactIDsAndNames = [String] ()
        let fetchRequest = NSFetchRequest<User>()
        let entity = User.entity()
        fetchRequest.entity = entity
        fetchRequest.predicate = NSPredicate(format: "isVisible = %@", "1")
        do {
            var users = try CoreDataStack.managedObjectContext!.fetch(fetchRequest)
            users.sort(by: { $0.first_name < $1.first_name })
            for user in users {
                //To get an array of currently added users
                arrayOfContactIDsAndNames.append("\(user.contactID)|\(Helper.getUserFullName(user: user))")
            }
        } catch {print(error)}
        return arrayOfContactIDsAndNames
    }


Then in the intent I pull that contact ID and the name to display and it works fine on iPhone but not on Mac.

Code Block
...
contactIDsArray = defaults.value(forKey: "ContactsForWidgetIntent") as! [String]
    for user in contactIDsArray {
        let values = user.components(separatedBy: "|")
        let contactID = values[0]
        let name = values[1]
        let personIntentObject = Person(identifier: "\(contactID)", display: "\(name)")
        userItems.append(personIntentObject)
    }
    completion(INObjectCollection(items: userItems), nil)


Not sure why but its working on iPhone. On Mac I get an error that there are No options provided for this parameter
I could never figure out yet why I can't fetch from The intent file, the fetch error catch bit gets called because I put a dummy entry in there that would display on an error. the app group share file approach I put in the comments is the best solution I've found so far, and just an update, after deleting the Derived Data file from the Mac the widget is working on the Mac now so I'm happy with that.
Making FetchRequest from CoreData in IntentHandler for WidgetKit
 
 
Q