Queryable
Queryable copied to clipboard
CoreMLModels:No such file or directory
After cloning the project to the local environment, the compilation shows a lack of CoreMLModels and Assets files, preventing local execution.
me 2
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.
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'.
After making the changes, a fatalError("Fatal error: failed to find the CoreML models.") is thrown on line 19 of PhotoSearcherModel.
改完之后 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
You need to modify the path of CoreMLModels based on your own situation, as shown in the following figure.
to
Assets.xcassets needs to be supplemented by the author.
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.
- 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:
Good luck!
Assets.xcassets needs to be supplemented by the author.
added in this commit: https://github.com/mazzzystar/Queryable/commit/738fcac880d44d1961186d77de9b8709f2863d51
https://github.com/mazzzystar/Queryable/pull/8 fixed by above pr.