I added the script that I found in another post but no luck. I cleaned the build folder hundred times but nothing is working.
Actually in my case the target has been set correctly. All I needed to do was to turn off the simulator and let it get started by the build again.
Have you checked the "Target Membership" in the right-side pane?
Go to "images.xcassets" under your project
Click "AppIcon" or any image asset you have for your project
Show the Inspector on the right
See if "Target Membership" is checked correctly for your app.
Select Target from Xcode then navigate to General Tab and under "App Icon and Launch Images" section select "App Icons Source" -> AppIcon
It was greyed out in the Target membership. I fixed that and it worked.
When adding an image to my project, Xcode shows the check box "Add to target". Even if I enable it, the image doesn't actually get added to the target and the image doesn't show in the app.
When I click on the image and then look at the "File Inspector" on the right pane, I can see the "Target membership" stays unchecked. If I enable it here now, then it works fine and shows in the app.
Shouldn't the "add to target" mean it should enable the "Target membership" automatically?
It is XCode 9 bug.
Opened Radar: https://openradar.appspot.com/33577678
I set up the launch images as so, XCode forced me to rename the images which is ok, but for some reason when I run iOS Simulator, there is no launch image displayed. Instead, a black screen is displayed. Previously I had the warning Missing default-568h#2x launch image which went away when I clicked add on the menu that was popping up when I expanded the warning. However the launch images still do not display when launching the app. I have tried resetting all content, cleaning, building, and then running again, but nothing seems to be working. Additionally, XCode did not rename any of my images to default568h#2x so I'm assuming that is a problem, even after I clicked add. I do have launch image set to default in info.plist.
Any suggestions?
I meet the same problem, but the result comes out because i changed the Launch Image Source Setting.
Here is how I fix it:
Go to the target in the Project Editor
Select the General tab
Find the "APP Icons and Launch Images" section and click "Launch Images Source"
If the current state is "Use Asset Catalog", select "Migrate".
Problem Solved.
Xcode 11 outputs this error if you move your Info.plist file and forget to tell Xcode about the new location in Build Settings.
The Info.plist contains metadata about your LaunchScreen storyboard/image. Apparently, Xcode assumes you want to use a launch image (and did not provide one) when it cannot find the target's Info.plist file. Updating the Info.plist location in Build Settings fixes this disconnect:
Select the Project file (top item) in the sidebar.
Select the Target in the Project editor.
Select the Build Settings tab in the Project editor.
Scroll/search for "plist", or "INFOPLIST_FILE" to be exact.
Double-click the plist entry to edit it, and type in the correct location for the Info.plist file.
(e.g. if you moved it to a Resources folder within the MyGreatApp project root folder, set the value to "MyGreatApp/Resources/Info.plist")
This is not the OP's situation (they intended to use launch images), but I thought I would add this breadcrumb for anyone like me who got this error after moving an Info.plist file.
I am guessing but just try following steps :
Go to the launch image path in your resources .
Copy paste your image and give the same name default-568h#2x
Try to clean and build the project .
Then also if you are not seeing the image then just simply delete the application and install it again .
No need to name a file like that.
Just doing this solves the problem :
1. Add launch images inside assets by right click / add new files.
By doing this, you will add launge images set.
2. Then set all of these launge images.
To see the sizes do these : Select the image then you can check the size on the property inspector at right. Like this:
If (as opposed to all the previous answers) you're not interested in any launch image at all (i.e. the error appeared after deleting it), the following suffices:
1. Product > Clean
2. Product > Build
I am using Xcode 11.3.1, and I just did a project clean up, this warning is gone:
⇧ + ⌘ + K to Clean Build Folder.
Close Xcode.
Re-open Xcode.
Re-build project.
None of the suggestions worked, but this did
Delete the targets that cause the error
Recreate the target
Problem solved 🎉
Clean project
Build project
Toggle issue navigator window
In the issue navigator window there will be a warning message saying Missing Default-568h#2x.png
Click that issue
The dialog will come up prompting to add the missing file
Hitting add will place the file (all black in colour) into the root of the project
Issue solved
When I build my app with Xcode 4 it always show this error message:
CpResource "Color Calculator/X.png"
"/Users/mauro/Library/Developer/Xcode/DerivedData/Color_Calculator-eomtenpvfeomibgervrskkupofrx/Build/Products/Debug-iphonesimulator/Color Calculator.app/X.png"
It seems that Xcode wants to copy X.png in the DerivedData.
But I don't have X.png in my project. I use to have it, but it was deleted some versions ago (with many other png).
In order to verify, I deleted all the objects in project's xibs. So now I have two empty xib, however the error message continues to appear.
Thank you.
Click on your project, go in the tab "Build phase" then in the tab "Copy bundle ressources" and delete the .png to tell xcode to stop trying to copy it :)
In my case I removed the icon and added my "LAUNCH SCREEN and MAIN STRORY BOARD".
i was working with Xcode3, since i moved to Xcode4, i didn't find where is the Build in the settings section in Xcode as it looks like this in Xcode3:
Not sure to understand your question, the 'Build Settings' is still there in XCode4, simply click on your project itself and it's there
Click on the project at the top of the left pane in XCode and you will find a 'Build Settings' pane...