Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to get the home directory #9

Open
gfchenun opened this issue Feb 22, 2023 · 9 comments
Open

Failed to get the home directory #9

gfchenun opened this issue Feb 22, 2023 · 9 comments

Comments

@gfchenun
Copy link

macOS Version 13.2.1
Xcode 14.2 (21534)
Simulator iPhone 14 pro iOS 16.2

use Text to image when generate log:Failed to get the home directory when checking model path
WX20230222-113902@2x
WX20230222-113929@2x

and when I use real phone device iphone 13 pro max , is got Memory crash, I have add Increase Memory Limit and Extended Virtual Address

WX20230222-113724@2x
WX20230222-114939@2x

@ynagatomo
Copy link
Owner

About model path, did you follow the instruction on README? The folder may not belong to the target.
Screenshot 2023-02-22 at 12 54 41

About memory issue, sorry, I have no idea.

@gfchenun
Copy link
Author

About model path, did you follow the instruction on README? The folder may not belong to the target. Screenshot 2023-02-22 at 12 54 41

About memory issue, sorry, I have no idea.

Yes, I have add the folder to target, is same as README
WX20230222-135357@2x

@ynagatomo
Copy link
Owner

Hmm, that's strange. How about building for My Mac (Designed for iPad) target?

@gfchenun
Copy link
Author

Hmm, that's strange. How about building for My Mac (Designed for iPad) target?

on Mac(Designed for iPad) is can work

WX20230222-142520@2x

@ynagatomo
Copy link
Owner

In that case, the project is fine.

@gfchenun
Copy link
Author

but on iphone is still can't work, log:[coreml] Failed to get the home directory when checking model path.

@ynagatomo
Copy link
Owner

hmm..., sorry, no idea about that.

@foxstudiohua
Copy link

but on iphone is still can't work, log:[coreml] Failed to get the home directory when checking model path.

you must run on the real device

@ijunfly
Copy link

ijunfly commented Aug 17, 2023

Use 'let resourceURL=Bundle.main.bundleURL' on iOS/iPadOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants