Queryable icon indicating copy to clipboard operation
Queryable copied to clipboard

CoreMLModels:No such file or directory

Open AniOSDeveloper opened this issue 1 year ago • 9 comments

After cloning the project to the local environment, the compilation shows a lack of CoreMLModels and Assets files, preventing local execution. 截屏2023-07-11 13 42 34

AniOSDeveloper avatar Jul 11 '23 05:07 AniOSDeveloper

me 2

isgbuddy avatar Jul 11 '23 06:07 isgbuddy

It might be an issue of the repo, will fix later.

Try delete your folder of CoreMLModels, create a new one with the same name and path in your Finder, put models + .txt/.json files into that folder. Then drag that folder inside your Xcode structure, remember to choose "Create folder reference", then it should be fine.

image

mazzzystar avatar Jul 11 '23 07:07 mazzzystar

Path issue, locate the red-colored folder and change the path on the right to the correct one. You can remove the reference to 'Assets'.

xiaohundun avatar Jul 11 '23 07:07 xiaohundun

After making the changes, a fatalError("Fatal error: failed to find the CoreML models.") is thrown on line 19 of PhotoSearcherModel.

loss99 avatar Jul 11 '23 07:07 loss99

改完之后 fatalError("Fatal error: failed to find the CoreML models.") PhotoSearcherModel 第19行 报错

English please : )

This issue is because the path of CoreML folders does not match the real path on your disk, try https://stackoverflow.com/questions/49768231/xcode-9-some-folders-marked-with-red-text

mazzzystar avatar Jul 11 '23 07:07 mazzzystar

You need to modify the path of CoreMLModels based on your own situation, as shown in the following figure. image to image

davidwang558 avatar Jul 11 '23 07:07 davidwang558

Assets.xcassets needs to be supplemented by the author.

davidwang558 avatar Jul 11 '23 07:07 davidwang558

1.CoreMLModels: Open the project and select the red file in the structure, delete it and select 'Remove Reference' in the alert, then drag and drop the CoreMLModels folder from the cloned project to Xcode project, after that you will see a blue folder below Queryable.

  1. Assets: select Queryable in the structure, right click and select 'New File...', select and double click 'Asset Catalog', name it Assets and click 'Create'. Then select it and create two 'New Image Assets' named AccentColor and AppIcon.

After you done the two steps above, the final result will look like the following figure: 截屏2023-07-11 16 26 43

Good luck!

AniOSDeveloper avatar Jul 11 '23 08:07 AniOSDeveloper

Assets.xcassets needs to be supplemented by the author.

added in this commit: https://github.com/mazzzystar/Queryable/commit/738fcac880d44d1961186d77de9b8709f2863d51

mazzzystar avatar Jul 11 '23 09:07 mazzzystar

https://github.com/mazzzystar/Queryable/pull/8 fixed by above pr.

andforce avatar Jul 13 '23 01:07 andforce