Post

Replies

Boosts

Views

Activity

Reply to Inconsistent crash-on-launch while calling MLModel.compileModel(at: url)
I think I've found the issue. It would seem there is a limit to the number of temporary files allowed in an app container and the MLModel.compileModel(at: newFileURL) call creates temporary files but does not cleanup. Whatever process is responsible for managing the temporary folder cannot be relied upon. See nshipster.com/temporary-files for a good overview of best practices.
Jul ’20
Reply to Inconsistent crash-on-launch while calling MLModel.compileModel(at: url)
No answers just more debugging details - I tried using different MLModels (from 1MB-30MB in size). Once it gets into this crashing state it doesn't seem to care if you change the model files. I've seen all types of builds/deployments get into this crashing state. Xcode debug builds, TestFlight builds, and App Store builds have all ended up in this state. Still the only known fix is a full delete and reinstall.
Jul ’20