|
When loading the BetterRest Project 4 part 2 on the iOS simulator I get the following error: "Failed to get the home directory when checking model path." No clue how to get rid of this. I suppose it may have to do with changing the name to SleepCalculator maybe or maybe where I saved the coreml file? I am not sure but the app works it just spams my debugging area with that error. Please help. Here is the code:
|
|
It seems like a lot of people have been running into this issue, and I haven't seen a real fix for it other than the work-around provided in the last response on this page https://developer.apple.com/forums/thread/720755 I get the same error when I try to run mine in the simulator, but I would just ignore it for now. |
|
I had the same thing but was able to fix it. In the tutorial, it has you rename the model to SleepCalculator after exporting it from CreateML -- that may have somehting to do with it. I went back and made my CreateML file SleepCalculator.mlmodel, and in the xcode project I removed and then readded it. That seemed to resolve the "Failed to get home directory..." errors |
SPONSORED Get accurate app localizations in minutes using AI. Choose your languages & receive translations for 40+ markets!
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.