The nslog gives the error "Could not load the "XXX.png" image referenced from a nib in the bundle with identifier "XXX". However, Image.png is never referenced in IB nor in my code. Why do I still get this error (I have also cleaned the product and build folder, no luck).
I figured this out for future reference... It's the strangest thing - I wasn't referencing the image anywhere in my app, but I made a new image and named it 'XXX.png' (what the log claimed I was referencing) and added it to my project. Then I deleted it from the project, and now I don't get this error anymore. So odd...
Related
Whenever I am trying to run my app on IOS 14 simulator I am getting this error multiple times.
"nil host used in the call to allowsSpecificHTTPSCertificateForHost"
I have tried putting this in AppDelegate.m file also but did not work.
I had multiple instances of this warning. Removing certain Lottie animations solved most of them. However, I still had one instance of this error persist.
I found it came from an .svg file I created and imported to the Asset Catalog. I clicked on this image and unchecked 'Preserve Vector Data' from the attributes inspector section. This resolved the runtime error.
I am have exported p12 file from another machine with empty password and trying to install it in other machine. But getting following error in another machine.
error - An error has occurred. Unable to import an item.The contents of this item cannot be retrieved.
Please click on below image link if not visible
Is there anything i am doing wrong or missing?
First you need to combine two files including .certificate & key file and then export it and I think put password/ or not use it will work in both cases, before export to p.12
For reference I have attach screenshot.
Everything is fine when building and running my app on device. The problem is at the end of archiving xcode always gives this error. Can you help me debug this error at least? Because every time it takes me 20 minutes to see if it fails again.
Debug info obtained: This error is thrown when I add some compressed images to the asset catalog. When I remove the compressed ones and add original uncompressed images, error is not thrown.
How are you compressing your images?
This link states that a similar error is thrown when you try to establish relationships between separate objects in core data. I think asset catalogs must use core data under the hood. My guess is whatever you're doing to compress and reapply the images is somehow adding metadata artifacts to your asset item that appear as relationships to other assets or objects to Xcode, which is not allowed. I'm not saying that based on experience, just reading your error.
If you think the new compressed image is fine and shouldn't have any weirdness, try deleting the item in the asset catalog and making a new asset with the same key/name, and then add your compressed images in. Asset catalogs items sometimes hold onto weird metadata.
Also, 20 minutes is a long compile time even on large projects, if you think you can recreate the bug in a fresh project, it would be much faster to test. Just make a new one with a couple image views, put your old images in first, then attempt to rerun there. You should be able to copy the asset catalog contents from one project to the next if you get it working there.
Edit: Also are there images being used directly in xibs or storyboard files? It seems like some of the meta data the compiler is coughing up could be related to xib files. I'm not too familiar with the stuff that came out of the compiler in your post, but you should check that your interface builder files still load correctly after the asset change.
I have made some changes in myapp like change display name.
after that I have copy project to another directory. but it couldn't open it gives error like below image
it gives error message "Bizz Tamanna.xcodeproj Couldn't load Bizz Tamanna.xcodeproj because it is already opened from another project or workspace"
this message is correct I have opened that project from another directory also but this error I got first time before change bundle display name or some change it works perfectly on both location.
When I closed already opened project then it works perfectly.
appreciate for help
This question already has answers here:
Cannot add any images
(2 answers)
Closed 9 years ago.
Every time i add an image for i get the error below. For some reason even if i rename it it still doesn't work, this problem was happening before on another project so i deleted it and started again. i have already checked for duplicate images that did get rid of the error however once i built the project the the picture was blank and i get a message saying
2013-11-07 16:45:28.613 Chiswick W4[1812:60b] Could not load the "1frivoli.png" image referenced from a nib in the bundle with identifier "Studentathome.Chiswick-W4"
need some help urgently!!
Also i would like to add i can take a screen shot of that image and input it however i will have to do this is a worst case scenario i just want to know why my images don't work.
thank you
Often you can try to open the file with Preview, and if it opens resave it as a different file, and use the saved file in your project. It handles more png variations than iOS but usually writes files that can be read. Photoshop is just one of many sources that can create pngs unreadable by ios.