SwiftGif
SwiftGif copied to clipboard
This image named "nav" dows not exist
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?
Just at samee update to the question "nav" is my gif picture.
i meet the problem too
same problem here
+1
Make sure your image has check the target, it's help for me.
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
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.