How do I handle error: couldn't find Assets.car in bundle with identifier:... ARKit, assets problem - augmented-reality

XCode13.4.1, I got the following error, but I have no asset called car.
UserInfo={NSLocalizedDescription=RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier:

It took me quite a lot of googling to comeuppance with a solution.
I solved my problem by adding the Assets.xcassets to the build phase of the target.

Related

XCode Error itms-90035 - Invalid signature? [duplicate]

This question already has answers here:
Error itms-90035 - Xcode
(16 answers)
Closed 7 years ago.
I've been building with Chrome-Mobile-Apps for the last few weeks in XCode with no problems until this morning, where I'm getting this Erorr itms-90035 when I try to submit my archive to the App Store. It will validate fine, but when I try to submit -- nada. Here is the error I get:
I found this thread that has the same issue, but the highest rated solution is not working for me. The file it points to in my erorr is a Unix Executable File that when I run doesn't do anything and I'm not sure if it's safe to delete. I searched by project for .sh files but only found one that is required to run the project. I'm not sure where the error is actually coming from? Any assistance? I'm incredibly confused here. I think apple changed something on their end.
edit Yes I am aware that there is another thread on this topic, that's where I first checked, as I said in my post. Unfortunately, the solutions in that thread are not related to my issue. I only have one .sh file in my project and it is required to copy the contents of my www folder w/ cordova to the iOS project, I think. If I remove the file my project will not build.
edit2 the only things in my copy bundle resources bit in the build phases tab are all of my icon/splash image files and MainViewController.xib. I don't think these are the issue
You need to delete the .sh file under your bower components folder. So just follow the instruction path for your binary file, find the file end with .sh and delete it. You should be good to go. Apple recently enforce this, and it is super annoying.
Refer the original solution working for me here: Error itms-90035 - Xcode
For me, it was with git. I removed .git file by running rm -rf .git
and the app got submitted successfully.
A similar thing happened to me.
I was using phonegap build for creating my .ipa file.
My Tip is to look at the path of the file mentioned in the error message.
When I looked at it it seemed to refer to a file that was not part of my project at all.
It turned out that my build process did not do a proper cleaning of the folder into which it copied the files to be zipped and sent to phonegap build - so that old files where still included.
Adding a proper cleanup initial step to my build proccess fixed the issue right away.
Please check if you are using crittercsim version prior to 5.2.0, it has a file name dsym_upload.sh which is also causing problem, if that is the case, please update your crittercism source.
For me the error was related to having a file in 'Copy Bundle Resources' that did not belong there. Reading other threads it appears to be a common theme. It's not so much of a particular type of file but more about 'any' file that shouldn't be there. If you go into your app target/Build Phases/Copy Bundle Resources...I expect you will find a file that does not belong there (with the name 'marked'? - assuming you have all your proper Code Signing authorities). Remove the file from the Copy Bundle Resources...(not necessarily from your project - you may need that file for you App to work)...just get it out of 'Copy Bundle Resources'. If you are still uncertain of what file is causing your problem, try Archiving and Validating your App. Although, it will Validate fine it will indicate a file with Zero Entitlements. That file should be the problem.
I fixed this by just removing the entire unix executable file. My project didn't need it apparently. Not a great solution (actually the worst) but it works!

Prefix.pch not found but only when profiling

The app runs fine but when I go "Profile" I'm getting the following error:
clang: error: no such file or directory: '/Users/J/Library/Developer/Xcode/DerivedData/MyApp-ajnudfmshjcjmphggazldsfhzvko/Build/Intermediates/PrecompiledHeaders/MyApp-Prefix-atybgvarhtjcxtdhqwgxnbhqqgou/MyApp-Prefix.pch'
I think this may have something to do with installing cocoa pods, which I've since removed. How can I stop xcode from adding a second .pch ?
** EDIT **
I recently looked at the Precompiled Headers of another app and noticed that it was also doing the addition .pch but this app was profiling fine. I didn't notice an additional file of MyApp.pch.d which is not in my other app. I have no idea what that means but as far as I understand it shouldn't be effecting whether or not I can profile. I compared both the projects and their Prefix Header properties and they match, relatively.
The ONLY way I've been able to resolve this issue was by creating a new project and painstakingly moving each and every asset over until the app worked in the new environment. Problem solved.

How to handle PBXCp Error in iOS 6

I have some image files that when copied
into the Xcode project , I get the PBXCp error and a lot of warnings saying 'Dependency Analysis Warning'.What must be the reason?
I added each image individually to Xcode rather than adding the whole folder of images and the problem was solved.

How do i fix this CopyPNG File error?

While reading /Users/user/Desktop/AppProject/PruebaApp/Logo Retina.png
pngcrush caught libpng error:
Read Er Could not find file:
/Users/user/Library/Developer/Xcode/DerivedData/PruebaApp-cblepoaxbqzyopcbcswwqjtftyon/Build/Intermediates/ArchiveIntermediates/MaderoAPP/InstallationBuildProductsLocation/Applications/MaderoAPP.app/Logo
Retina.png
Command
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng
emitted errors but did not return a nonzero exit code to indicate
failure
Im getting these errors while archiving project, at the end it does archive but i want to get rid of it. I had trouble with the app before and i read that i should delete the DerivedData/(myproject)folder so i did. and apparently it is trying to look for the images in that folder how do i fix this??? Help!
Try first by Hard Cleaning your project CMD+OPTION+SHIFT+K, If problem exists apply following method,
Build Phases -> Copy Bundle Resources, Any fileName is red color?
Or
Convert Logo Retina.png or Create it again, maybe it's an encoding\format issue.
Or
Rename "Logo Retina.png" to "LogoRetina.png".
~Good luck~
It also happens when you have multiple images with the same name in TARGET->Build Phases->Copy Bundle Resources. To resolve it -
Search for the image name that you are getting an error for in Build
Phases search bar at the top.
If you get multiple results in Copy Bundle Resources for the search query, just remove others from it by clicking on "-" sign. Make sure you have same images for the multiple results. If not you have to rename the actual files of other entries.
Just compile your code. You are good to go.
Hope it works for you.
Just open image in Preview app and export it as png file. Replace old image with new in Xcode.
Honestly I have had this problem intermittantly many times and clean then rebuild has fixed it.
Since the answers here are either not useful at all or quite complicated I want to add mine:
The error means that Xcode can not find the file, whether it is in the project's folder or not.
If you still need that image, what you can do is to open a Finder view and navigate to your project. Drag the file Xcode was complaining about into the project an uncheck 'Copy to folder'.
if you do not need the file anymore, on the left side of Xcode, find the file, it will be shown in red, simply tap on it and then delete / backspace
Hope that helps some people :)
To solve the issue copy the Image name. Then Filter it (Build Phases -> Filter textfield). Finally I removed it.
Also check that you are not naming the images with only a number like "0.png" I change it to "tuts0.png" and it worked.
I just had this error and honestly I think it was being caused by another error. I had an issue with my Crashlytics framework and I'm convinced it was effect some unassociated pngs with the copypng error. I replaced the Crashlytics.framework with a fresh version and viola, all errors were gone.
Don't ask me how this works, I'm just posting this in case someone else can benefit from it.
I wasn't able to fix this problem. So i delete and reinstalled xcode, this helped for me.
Fixed it by reverting to my old product name (in "Build settings"). Seems that the new product name confused the images path.
I have the same issue with resources. The problem was that I have copied target from another one and just forget to uncheck checkbox at target membership window.
i face this problem and this solution is working form me
you need to remove any reference for that image
Build Phases -> Copy Bundle Resources
after that clean and build and problem will be fixed
I had accidentally deleted the file from the location which was linked to x-code project. I had not copied the file in my xcode project but just the path. Hope it helps someone.
I've had similar issues with pngcrush /libpng crashing with PNGs (checksum errors / freeing object that have been freed etc). These could be reproduced on the command line so I recreated the PNGs, even converted them to other formats then back but the errors persisted. In my case Xcode then rejected the resulting archive for not having iPhone 5 support (as pngcrush killed the Default-568h#2x.png image). The above fix resolved this.
For those who are struggling with this error while building Cordova app.
Please keep the following point in consideration as it may lead to this error.
The images should be tagged as "resource-file" and not as "source-file" in plugin.xml of your Cordova plugin as the former includes the images in "Copy Bundle Resources" (under Build Phase) and the latter to "Compile Sources" of your equivalent xcode project of cordova app.
If non of above answers can fix your problem, try look into Xcode project where you reference your image file, I happened to referenced twice to the same png file. Once I delete one the reference, it worked. The error went away. Good luck.
It also happens when you have multiple images with the same name in TARGET->Build Phases->Copy Bundle Resources. To resolve it -
Search for the image name that you are getting an error for in Build Phases search bar at the top.
If you get multiple results in Copy Bundle Resources for the search query, just remove others from it by clicking on "-" sign. Make sure you have same images for the multiple results. If not you have to rename the actual files of other entries.
clean cmd+option+shift+k and Build Project...
work well for me....

iOS Can't read file

I have a strange problem in my project and can't figure out a way to fix it.
It manifest itself when I Archive the project. If I just build it, all is OK.
This is the error I get...
While reading /Users/jorgen/Desktop/isengua-en-de_120125/Airship/UI/Default/Subscription/Resources/Shared/middle-detail#2x.png pngcrush caught libpng error:
Read Error
However the actual file that it can't read changes. I have checked that it there and that it can be opened. It is always the Airship files, but it can be in Push, StoreFront or Subscriptions.
Also in the same project I have a problem with the icon.
warning: iPhone/iPod Touch: isengua_ENE-DE_114+.png: icon dimensions (0 x 0) don't meet the size requirements. The icon file must be 57x57 pixels, in .png format (-19014)
Unable to validate your application. - (null)
The icon for Retina is 114x114 and the other is 57x57. Again I have checked and double checked this.
I have gone back to a copy I had two weeks ago, and the same thing happens.
Grateful for any help.
If it only happens when you archive then the error happens when attempting to package/move all the files required into the the archive folder. Building just pulls from the referenced location.
Easy fix is just remove the files and re-import. 2 files would no be a big hassle.
Also you could peek at your info.plist and/or your copy bundle resources and confirm that everything points to the right files.
None of the answers worked for me but this did.
I check in the resources folder i.e. not the www folder, so:
PROJECT-NAME/PROJECT-NAME/Resources/splash
in that folder there should be a copy of the same Default.png and Default#x2.png that are in your www folder.
when i checked they were the phonegap defaults. I replaced them with a copy of mine from the www folder. Did a clean and a build and it finally worked!

Resources