I just updated xcode to 7.0 and fixed most of the bugs, but I keep getting this error message:The launch image set "LaunchImage" has 2 unassigned children. I already deleted the two unassigned children and still getting this error message.
Try to deep clean Xcode (command+alt+shift+K)
If you click the problem , Xcode will lead you directly into the
Images.xcassets , manually delete the two Unassigned images , rebuild it work fine for me.
The deep clean didn't work for me. As trivial as it sounds, recreating the LaunchImages fixed the issue for me. I don't know why it happened in the first place, probably an Xcode 7 bug, but it works again.
What you have to do is manually delete the two unassigned images, and then right click your image asset panes and choosing: App Icon & Launch Images > New iOS Launch Image. Once you click on that, a new set of launch image screen slots should populate. See the screenshot below for reference.
In my case deep clean would not work until I manually deleted both unassigned images. For me the fix was a combination of all three answers above.
Select the image. Open the attributes inspector and check that a device has been selected - i.e. all/universal. Then drag and drop the unassigned image into the appropriate image size.
Related
Asset Catalog Compiler Error - none of the input catalogs contained a matching app icon set named "AppIcon"
I had a similar problem and I think it was because I accidentally deleted the AppIcon in Images.xcassets. So I will explain what I did.
Open the Images.xcassets in the current project.
Resize the window and move the window(Xcode) to the right.
Start a new project in Xcode(a temporary one). Name it something like "temporaryApp".
Open the Images.xcassets in the temporaryApp. Here, you can see AppIcon.
Click and drag this to Images.xcassets of our previous app, that is placed at the right-hand side of the screen.
And voila, Build Succeeded.
Hope this works for you
Please verify your settings is correct.
I had a same issue and I solved this way.
For me, I added Apple Watch extension within this project and deleting them got me into this trouble.
In the Images.xcassets, I do have "icon" and "info", but the error message was exactly same as yours but for "icon" set.
So I searched within xCode project which contains "icon". and found xcodeproj file > build settings > Asset Catalog Compiler - Options with app icon set name as "icon".
So I deleted icon leave it blank and build again, IT WORKS.
This once happened to me, and I solve it correctly with an easy way :->
choose the file "Images.xcassets", if your project does not have such a resource file, create it.
click your mouse's right key in the blanket, and choose "New App Icon"
build your project again, everything works fine now.
IF NOT, check the project's "Build Settings", and find property "Asset Catalog App Icon Set Name" to see if it was "AppIcon".
You have probably deleted the Appicon in a Assets.xcassets, you can fix it by going to Assets.xcassets -> hitting the + -> App Icons & Launch Image -> New iOS App Icon.
Here's an Image
For whoever comes across this issue in the future. Verify That App Icons-> Source is set to AppIcons, and not "None". See pic
Here is a simple solution
Go to assets
Right click -> IOS -> add AppIcon
Run
This problem might be solved by removing the reference of .xcassets file and adding it back if the AppIcon and info is already setup. It worked for me when i removed the reference to Images.xcassets and then added it to project again from Xcode.
On Xcode 13+
Go to your app info -> General
You will see " App Icon and launch Image", be sure to target the right folder in my case AppIcon.
Screen general app info
If you deleted it, simply go to your "Asset", then click on the plus on the top right of your screen and search for missing folder like "AppIcon" or "AccentColor"
Screen explanation to search for elements
Have a great day 👩🏻💻
In my case I run Flutter debug app on IOS Simulator. It took me up to 3 days and I still can't run it. Finally the solution that can get it working again is simply restarting my Macbook.
For me - it was assets catalog (that contained the app icon) had no target membership set.
Please make sure you had that set to appropriate target.
For me the target membership was not set on the icons.
When I delete images using Delete. It has two choices.. remove reference and move to trash.. when I choose move to trash, the image is removed from the list. But when I hit run, the image is still attached to the running app? Why is that? can someone help me with this issue? I want to remove it completely from my app.
Try closing the Xcode and Simulator and then Run it. Also try to remove Background image name from the Attributes Inspector. This might work
I have a similar situation explain on this thread (XCode 5 Storyboard Internal Inconsistencies), but I installed the final version of the Xcode and never installed any beta version. Additionally, I can't add comments in previous thread cause I don't have enough points. So i need to ask my specific case.
In XCode 5, I have a problem with all of my projects "The document 'main.storyboard' has X internal inconsistencies that were found and repaired. Please save this document to fix the inconsistencies."
If you choose to list the inconsistencies, you see that it's saying that some Images in my resources section, that uses this image, and is duplicating in the Storyboard. I try to save the document, but it does nothing, and when I relaunch the project, I get the same error.
I try all this things with NO SUCCESS:
I delete all duplicates in storyboardFile file.
Drop the image file from my project and add again.
Reconnect UIButtons with the problem image.
Change the image name file.
In my research, also I create a new project in XCode 5, add a same image in two objects inside Storyboard and got the same message.
Anyone have the similar problem?, and more important, anyone have a solution?
I have XCode 5 and OSX 10.8.5.
**** UPDATE *****
I found a workaround. The error is generated when one image inside the storyboard is used several times, if you delete the reference of the image and assign the image to the object by code, the error disappears, but I don't like it. I'll research a little more, but apparently is a bug from Xcode (I hope not).
This problem occurred for me Xcode 10.1 but was resolved. The error message provided a "Show Details" button.
Clicking on Show Details showed my problem, a duplicate.
Right-clicked on the identified storyboard (Main.storyboard) to open as source code.
Searched for the duplicate declarations and removed one of the duplicates.
The error message no longer occurs including when the storyboard is reopened.
An easy way to fix this problem is to open up the Storyboard in TextEdit, then go down to the resources section at the end and delete any duplicate entries for images you see. They're sorted alphabetically, so it's fairly simple to do.
Saved the file, loaded up XCode and no more error messages.
I upgraded to Xcode 5 last night and am experiencing multiple issues, including the one you described above. I also seem to have found a workaround, albeit different from the one you found.
To get rid of it I saved the project, closed it, opened a different project and ran it in the simulator, quit Xcode then reloaded the original project.
Error message no longer appeared.
I have no idea why but this seems to have solved it for me.
Now to tackle the other niggles......... :-/
Same error today after upgrading to Xcode 5: internal inconsistencies relating to images that are used more than once in storyboard, but I found a solution that worked for me here: https://devforums.apple.com/message/883402#883402.
I created a new Asset Catalog (New file / choose "Resource" / Asset Catalog).
Once created, I selected the option 'Import from project' and imported all my images. Seems to have done the trick.
After installing Mavericks and Xcode 5.0.1 the problem was fixed.
Try to find under inferredMetricsTieBreakers section at the end of the storyboard unused segue references in the whole document as in the photo
Some background. Until I redo this part of the app, for now, I've dragged a bunch of images into my project. They are called Landscapexx.jpg and Portraitxx.jpg, where xx is a number from 0 to the total number of pictures (minus one) for that orientation.
At some point, I replaced the images used in the project. But the original images are still showing up on my device (but not in Xcode). Using NSLog to confirm which image is being loaded, I then look up the image with the same name in Xcode. Sometimes it's the same image. Sometimes it's not.
At first I thought the problem was that when building the app again the data remained. That would be a reasonable explanation. However, when I deleted the app, acknowledging that the data would be deleted, that did not solve the problem. Could this be a cache issue? If so, how do I clear the relevant cache?
One last thing. The images that appear incorrectly on the iPad have the project name checked in the file inspector.
The way I'm loading the images, by the way is using NSString *newImageName = [NSString stringWithFormat:#"Landscape%d.jpg",n];, for example. So the file simply needs to be in my project space somewhere, I thought. If there are two copies, I have no idea where the second one would be. I don't see them in Xcode.
P.S. If I run the app in the simulator, I get the same images as on Xcode. This suggests the errant images are cached somewhere in my iPad. Since deleting the app didn't take care of the problem, is there something else I can try?
EDIT: I found something that may point to an issue. If I go to the Build Phases screen and open the Copy Bundle Resources item, all the images are listed there. However some of them don't have the ...in projectname after them. These same items have the project checked in the file inspector. Not all the images are this way. What do I need to do to ensure all the files are correctly in the project?
I suggest deleting the app from the phone, cleaning the project, and rebuilding the app. This happens to me on occasion and this usually fixes it.
I figured it out. Going through all the menu options in Xcode, I found an option called Clean in the Product menu. I selected it, rebuilt the app and all is fine now. This option apparently clears out the precompiled stuff that occurs the first time a project is built.
I've loaded a project in Xcode 4 after not looking at it for a while. Xcode shows its progress bar and indicates in text that the project is loading, and it appears to finish, but then there are no files shown in the hierarchy or flat views. There is nothing showing in any view (except for one breakpoint in the breakpoints view).
Any ideas? Xcode gives me zero indication that anything is wrong, it shows me nothing.
I just had the same issue. After a few hours scratching my head and trying all kind of things, I finally found a fix: remove the whole package 'project.xcworkspace' inside the XXXXX.xcodeproj package.
More specifically, when you find the 'XXXXX.xcodeproj' file, right-click it, and select 'Show Package Contents'. This will get you inside the package where you will find the 'package.xcworkspace' file. It is best to do this while the Xcode project is closed.
Maybe that will work for you or for others with the same issue in the future...
Some of the project views have the "Recently Changed" filter icon. For me the problem was: i had that enabled in the Project Navigator, so it was only showing the files i recently changed. It looks like this.
I'm using Xcode 6.1 though.
I had a similar issue. After archiving a project the files would disappear from the project navigator.
It turned out that somehow XCode had added the word "main" to the searchbar below the project navigator so that almost all files where invisible. Quite frustrating.
It might be the same case for you..
For those who make it here, I was opening a older version of a similar iOS project after upgrading to the latest XCode (6.2), and was seeing the symptoms labeled in this question (missing files, folders etc.)
My solution: at the bottom left of the screen, unselecting 'Show only files with source-control status" which happened to be set on (it's blue when on). The icon looks like a 4-pt star inside a square.
remove the whole package 'project.xcworkspace' inside the XXXXX.xcodeproj package. may cause to any other error so please ignore and trying finally
You can quit xcode and reload again your project it help you
This happened to me when I tried to do an alt-tab, on a VM running in TeamViewer in Windows - Click the search bar below, enter delete multiple times and the invisible search term cleared up
I had the same issue. Besides the answers above, it could also be that you have already accidentally opened the project in another Xcode window... Close that and reopen everything and it should work.