可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
When I open the project file in the latest xcode version, I get the error "The folder "Images.xcassets" doesn't exist" in two popups. I have to click OK multiple times to make the popups disappear. I haven't done anything to remove such folders. Does anyone have an idea why I might be getting them?
Update:
I see it in finder and in my project explorer too. The problem still persists.
回答1:
You have probably set your launch images to be extracted from an asset catalog (which is 'images.xcassets' by default). If you don't want to use asset catalogs, go to your application settings and select 'don't use asset catalogs', but, if you do (I recommend you do use asset catalogs for App Icons and Launch Images), click 'create asset catalog'. If that option isn't available, right click on your project, select 'New File', go to 'Resource', and select Asset Catalog.
回答2:
I used the hotkey combinations for Cleaning the Project and Cleaning the Build Folder. Building again after this did the trick. The problem came up after merging too Git Repository Branches of our Project and trying to build.
Clean Build Folder:
Option + Shift+ Command + K
Clean Project:
Shift + Command + K
回答3:
I finally fixed it today by inserting the following lines into our project's info.plist:
<key>CFBundleIcons</key> <dict/> <key>CFBundleIcons~ipad</key> <dict/>
Actually what I did was from the project settings' General pane under App Icons and Launch Images, I changed the App Icons Source from my asset catalog to "Don't use asset catalogs" and then changed it back to "Use Asset Catalog". Xcode then modified my asset catalog by inserting a 2nd entry for AppIcon, but I just rolled that change back using my git client. The change to the info.plist (shown above) I left in place, and this solved the issue for me.
回答4:
Exact situation happened for me. The thing is that , i have added second target unknowingly. Deleting all the files related to that second target , solved the issue.
回答5:
Set the 'App icons source' and 'Launch Images Source' to 'Don't use asset catalogs', switch to other file then switch back, the popups will disappear.
Reset the 'App icons source' and 'Launch Images Source'.
回答6:
Add Image. Imageset folder in your project, in Assets.xcassets director.