Error loading encrypted models through CoreML Model Deployment service

Hi, while I was able to successfully retrieve MLModelCollection with a list of model identifiers from Apple's CoreML Deployment Dashboard, loading encrypted models from a collection results in the following error:

NSUnderlyingError=0x281ffb810 {Error Domain=com.apple.CoreML Code=3 "failed to invoke mremap_encrypted with result = -1, error = 12" UserInfo={NSLocalizedDescription=failed to invoke mremap_encrypted with result = -1, error = 12}}}

I use the same MLModel.load(contentsOf:configuration:completionHandler:) method with model URLs (from MLModelCollection) which works just fine for non–encrypted models.

Is there any workaround for this issue?

Hi @dshakbhazyan, this is not expected. Do you have any additional logs? Could you please capture a sysdiagnose and attach it to an issue on http://feedbackassistant.apple.com/? We will take a closer look and get back to you.

https://download.developer.apple.com/iOS/iOS_Logs/sysdiagnose_Logging_Instructions.pdf

Hi there,

I'm having the same issue. Is there a solution? Thanks.

Is there any progress? I also met the same issue. Error message: Compile the model with Xcode or MLModel.compileModel(at:). , NSUnderlyingError=0x28113e910 {Error Domain=com.apple.CoreML Code=3 "failed to invoke mremap_encrypted with result = -1, error = 12" UserInfo={NSLocalizedDescription=failed to invoke mremap_encrypted with result = -1, error = 12}}}

Add some information. I think it's similar to the issue discribed here: https://developer.apple.com/forums/thread/683163 I put the encryped mlmodec on the sandbox and load from the sandbox, it crashed. However, if I put the encryped momodelc on the app bundle directory, it could init successfully. Could you please tell me the reason?

Error loading encrypted models through CoreML Model Deployment service
 
 
Q