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!
Related
I'm trying to delete all the unused assets, to decrease the app size (icons, launch screens, etc), I started with the iOS project, but now I'm getting errors like this:
Bundle Resource 'Icon-Small#3x.png' not found on disk (should be at
'D:\Work\MyProj\MyProj\MyProj\MyProj.iOS\Resources\Icon-Small#3x.png')
I deleted the specified file, but it's not used in the project, at least it's not visually used. Some of the missed files are the default Xamarin X icons.
I deleted the array items in CFBundleIconFiles key, which pointed to all the missing files, but still getting the same error.
I don't know well about xamarin. But in Xcode, the images files are removed from Xcode better than from Find file utilities.
The project has a directory, .xcodeproj. And a file project.pbxproj will describe how many files will be compiled, and how many images resources in this project.
If a image file was deleted from file system, but it is still in this project.pbxproj. Then the compiler will argue this problem about it failed to find the image resource file.
So, deleting a image file in Xcode, will remove the entry from project.pbxproj and remove it from file system.
In Xcode, it will mark red colors for those missed files, I think xamarin should has similar feature too.
In iOS , some icons are required . Items marked with "Required" must be included.Refer the following image.
As we can seen ,Icon-Small#3x.png is required.It used for seetings on device (such as iPhoneX and iPhoneXs Max).Such as the icon in the following image.
So ,though you have deleted the array items in CFBundleIconFiles key.You will still get the error .
The reason you are getting this error is chances are you deleted the source files, but Xamarin still keeps on referencing them.
So resolve this error go to each folder, Resources and Resources/Drawables on android and delete each image separately. This should fix your issue
When I try to build an iOS application the XCode gives me the error which says
error: can't exec 'copypng' (No such file or directory)
Command copypng failed with exit code 71
So the problem isn't in missing PNG files or something like this, the problem is in the file that should does copy. I met this error for the first time and google says nothing.
How do I fix it?
I guess you stated, that you want to copy file, while there is no such file. Go to Project->Target->Build Phases->Copy Bundle Resources and find 'copypng' file (should be highlighted in red), and delete it (as it doesn't exist anymore).
On image attached to your question I see info that system couldn't copy files LaunchScreen-iPhoneLandscape.png and LaunchScreen-iPhonePortrait.png.
Normally, if you have Images.xcassets in project there should be "LaunchImage" image set. But it is alsoo possible that these .png files are placed directly in resources. Name for launch image used by target is set in "Asset Catalog Launch Image Set Name" in target's Build Settings. Make sure name for Launch image in xcassets (or in .png file in targets sources) matches.
If they are, check if target membership is correct (otherwise they won't be seen by compiler). Last thing to check - check potential problems with LaunchImage files according to the instructions in link from Adamsor comment.
For example - check if all necessary file sizes are in place, try opening and re-saving these images in editor. Maybe format is not right and that will be enough to fix it.
I've reinstalled XCODE and now all is ok.
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!
I have a very big app size. I tried to remove the default image files for unncesary splash screens and icons (i don´t support ipad). But i get a PBXCp error (like /icon-72.png: No such file or directory), even if i have configurated the proyect only for iphone, and i have removed ipad icons references on -Info.plist.
Anyone knows why i´m getting this error?
I want also to reduce the file size as possible. I have already removed the files of Capture.bundle, which i don´t need. Any other idea?
Thank you very much
1)
You still have a reference in your project to an "icon-72.png" file.
Check your project's build phases (e.g. the "Copy Bundle Resources" phase, especially) and also open up all the folders in your project to make sure there isn't a red (i.e. missing) file listed there.
2)
For larger graphics files, host the images or whatever on one of your servers and then have the app download and cache it. That will help to reduce the initial download size.
The app builds fine in a simulator and on a device. But as soon as I try to archive it for submission I get:
While reading /Users/adga/Documents/Adams Lokalt/Appar/NU SÅ/VertragingsApp/Rotation/Customization/Herfst2011/../../../default#2x.png pngcrush caught libpng error:
PNG unsigned integer out of range.
I've tried to open in photoshop and replace (without interlacing) but it doesn't work.
Any ideas?
I receive such error when just try to run my project.
This error could occur when you have duplicate file references (I have this problem because I change my png images). You can check, all of your copying files in Bundle Resources and for me there was more than one copy of each "error png file".
You can open Bundle Resources following this steps: click on your project name in Project Navigator tab, then choose your project in Targets. After that, you must choose Build Phases tab. You'll see a list of items: "Target Dependencies", "Compile Sources", "Link Binary With Libraries", and what we're looking for Copy Bundle Resources. Here you can see all your resources that you add to your project.
To fix this error, you must remove all error files from this list.
After that you also delete this files in Project Navigator, choose all files that needs to unlink from project, than right click on them and choose delete, then choose Remove Reference. All we need is to remove all references from our project.
All things done, right now we must add our files back. Click to Project Navigator zone with right button (or to a particular folder/group) and choose Add Files to "Your Project Name" and choose all files you need to delete.
Remember, that you remove reference from files previously and they are just waiting to be added again in your project folder.
Another reason when such error occur is when .png file is not a proper .png file, in this case you need to re-save file to png extension. You can open your image file in Preview and save it to png from here. If you have a big amount of images, you can use Automator to help you in your task. Hope this help.
I faced the same issue as well. I just restarted xCode and recompiled. I did not have that problem thereafter.
I met this problem too. Though the project still could be compiled, it is really annoying.
I resaved the png without interlacing to another place and replace the original one instead of just resaving it at the original place. This did work for me, why you just try this again?
I received this problem when I added two images to a project that already had references to them. Once I removed the duplicate reference, the error disappeared.
I had the same problem and error disappeared after simple step in photoshop. Open your existing png file with photoshop and re-save it as "Save for web & devices"...that did the trick for me!