Core ML collection deployment

Hi,

I'm trying to figure out how to save a copy of the Core ML model. So far I have managed to make it work while the app has Internet, the app is able download the core ml model from the deployment portal by using the method

beginAccessingModelCollectionWithIdentifier:completionHandler

However I am not able to save the model into the app. I tried to copy the file using modelUrl but it gives me access denied error. Also tried save the modelUrl and access it later, but the modelUrl only exist within the app cycle, after the app is restarted, the url no longer works (file not found)

Is the model deployed only accessible while there is internet or within the app life cycle? Or am i missing anything?

Cheers

Core ML collection deployment
 
 
Q