"Images.xcassets" folder does not exist

When I open the project file in the latest version of xcode, I get the error "The folder" Images.xcassets "does not exist" in two pop-up windows. I have to click OK several times for the popups to disappear. I haven't done anything to delete such folders. Does anyone have an idea why I can get them?

Update:

I can see it in finder and in my project explorer. The problem still persists. enter image description here

+3


source to share


5 answers


You have probably set your launch images to be fetched from the asset catalog (which defaults to "images.xcassets"). If you do not want to use asset catalogs, go to your application settings and select "do not use asset catalogs", but if you do (I recommend you use asset catalogs for app icons and launch images) create an asset catalog ". If this option is not available, right click on your project, select New File, go to Resource and select Object Catalog.



+1


source


I have used keyboard shortcuts to clean up the project and clean up the build folder. Building again did the trick after that. The problem arose after merging also the Git branches of our project's repository and trying to create.

Clear build folder:

Option+ Shift+ Command+ K



Clear project:

Shift+ Command+ K

+7


source


I've been bothered by this issue for the past month or two. It didn't hurt anything - it was just annoying. The problem manifested itself in both Xcode 6.4 and 7.

I finally fixed it today by inserting the following lines into our info.plist project:

<key>CFBundleIcons</key>
<dict/>
<key>CFBundleIcons~ipad</key>
<dict/>

      

Actually what I did was under General Project Settings under Application Icons and Launch Images, I changed the Application Icons icon from my asset catalog to Don't use asset catalogs and then changed it to "Use Assets" Directory. Xcode then changed my assets directory by inserting a second entry for AppIcon, but I just reversed that change with my git client. The change in info.plist (shown above) I left in place, and this solved the problem for me.

+1


source


The exact situation for me. The point is that I unknowingly added a second target. Removing all files related to this second target solved the issue.

0


source


Add an image. The "Picture" folder in your project, in the Assets.xcassets directory.

-1


source







All Articles