SwiftGif icon indicating copy to clipboard operation
SwiftGif copied to clipboard

This image named "nav" dows not exist

Open MKTherkildsen opened this issue 7 years ago • 7 comments

I'm using the latest Xcode 9, and when I tryed to run my application I get the error This image named "nav" does not exist, I tryed to use this in Xcode 8 without any problems.

Any idea how to fix this problem?

MKTherkildsen avatar Sep 23 '17 08:09 MKTherkildsen

Just at samee update to the question "nav" is my gif picture.

MKTherkildsen avatar Sep 23 '17 08:09 MKTherkildsen

i meet the problem too

sanadazuistransa avatar Sep 29 '17 06:09 sanadazuistransa

same problem here

FreeStand avatar Oct 05 '17 08:10 FreeStand

+1

tamoyal avatar Oct 09 '17 20:10 tamoyal

Make sure your image has check the target, it's help for me. qq20171012-164829

ghost avatar Oct 12 '17 08:10 ghost

Yea I think this is a funky XCode issue. Resources imported into projects don't seem to be automatically added to the "Copy Bundle Resources" build phase. So in XCode you have to go to your target, hit build phases, and manually add the resource. This can probably be closed as it's not specific to this project

tamoyal avatar Oct 12 '17 15:10 tamoyal

If you're strictly coding and not using storyboards, the above suggestion by tamoyal works. Go to the "Build Phases" tab when you click on your .xcodproj file in the project navigator and manually add your .gif file by clicking the + under "Copy Bundle Resources". I disagree with the statement by tamoyal "This can probably be closed". When installed as a pod, it doesn't perform as described in XCode 9+. Either the readme needs to be updated or the root cause needs to be corrected.

JKZama avatar Nov 07 '17 01:11 JKZama