MacOS HighSierra: Xcode Build App Icon Error - ios

I have been facing some issue in Xcode 9 uploading my app to AppStore
the error is
"Missing required icon file. The bundle does not contain an app icon
for iPhone / iPod Touch of exactly '120x120' pixels, in .png format
for iOS versions >= 7.0."
"WARNING ITMS-90704: "Missing Marketing Icon.
iOS Apps must include a 1024x1024px Marketing Icon in PNG format. Apps >that do not include the Marketing Icon cannot be submitted for App >Review or Beta App Review.""
and I have searched a lot and I realised too many people had this problem.
But I think mine is somehow different and I think maybe it's about my software update, because I have uploaded the excat same app a few days ago and it was all right.
But now I cant even upload it again.
//ANSWER: -
EDIT : I FOUND THE ANSWER THAT WORKED FOR ME
you know this problem doesn’t have same answer for everyone at all because it can be the result of a bug or the excat thing the error says (missing some icons) you should first check all the reasonable solutions like checking your icons etc but in my case ut was just a bug ... and i opened my info.pillist source code in xcode 8 version of the same project (it was for just two days ago and i didnt make any major changes ) and copy and paste it into my xcode 9 project and it was done...but you have a much easier way too: build your project in Xcode 8.3 ...in the case all of your icons are set you should be good to go

In Assets.xcassets > AppIcon you can find the icon in bottom.

"Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 7.0."
Just "command+b" your project with Xcode(8.3.3),then i translate the xxx.ipa with Application Loader ,and it successed. That means you must submit your application with Xcode8.x.x not 9.x.x

I found the Answer
i Replaced all of my Xcode 8 info pilist source code (and yes i handled every needed changes) to Xcode 9 info.pillist and this fixed this problem for me!!!!

Related

I can't submit my App store App because it doesn't see the assets folder. What is the solution?

I'm a rookie. I'm new to swift. that's why I can't do some things. I need your help. What should I write in my plist file so that I can access the assets folder and transfer my application to the app store store. I have a simple application on this link, it is my first attempt. I want to send this to the app store. Can you download and check my application or can you make the solution in the application and forward it to me? Very happy if you help.
Problems:
-"App Store Connect Process Error ERROR ITMS-90704:" Missing Application Icon. PNG format 1024 An app icon of x1024 pixels must be added to the Asset Catalog of apps created for iOS, iPadOS, or watchOS. Without this icon, it cannot be submitted for review
-Operation Error ERROR ITMS-90023: "Package icon is missing. .png format for iOS versions of iPad Pro, does not include an app icon exactly '167x167' pixels for iPad To support older operating systems, including icon maker.plist in the next package from Allah catalog
It seems that your project is missing the "Assets.xcassets" folder(directory). so this might be the error you are facing
Please verify the below things
Make sure the Assets.xcassets is there is project.
Verify that in your project target (under Deployment info) For App Icons and Launch Image option AppIcon is selected. Please refer the following screen shot.
Does app icon is added in Assets.xcassets?.
You need to add App icon with 1024 x1024 size with non-transparent background.
NOTE: Transparent background will not be working as it will throw error while uploading.

Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels

My recent App Store upload gave me this error:
iTunes Store operation failed.
Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 7.0.
I've added a 120 pixel icon file with the names "Icon-120.png" and "Icon-60#2x.png" and checked it's being added in the Build Phases > Copy Bundle Resources but I am still getting the same error.
Any suggestion what else I can try to solve this?
If it helps I've been working my way through this very lengthy SO answer: 'Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format'
but yet to get to the bottom of this.
Also, I've done a Build > Clean and restarted Xcode.
====
$ file Icon-120.png
Icon-120.png: PNG image data, 120 x 120, 8-bit/color RGBA, non-interlaced
$ file Icon-60\#2x.png
Icon-60#2x.png: PNG image data, 120 x 120, 8-bit/color RGBA, non-interlaced
For Xcode 9 on High Sierra try this:
Go to Menu Product > Archive, right click on your new build > Show in Finder.
Open Terminal and change to Archive: (type cd + space, drag your new build *.xcarchive
cd /Users/[user]/Library/Developer/Xcode/Archives/[XXX].xcarchive
Using #stubyte's code:
find Products/ -name Info.plist -print0 | xargs -0n1 plutil -replace BuildMachineOSBuild -string 16A323
Go back to Xcode > Windows > Organizer > Upload to App Store...
Fixed:
ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 10.0."
ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '167x167' pixels, in .png format for iOS versions supporting iPad Pro."
ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 10.0."
Still warning
WARNING ITMS-90704: "Missing Marketing Icon. iOS Apps must include a 1024x1024px Marketing Icon in PNG format. Apps that do not include the Marketing Icon cannot be submitted for App Review or Beta App Review."
This temporary solution is working for me.
If you use xcode 9, maybe try this.
Find xcarchive file, execute this command.
find Products/ -name Info.plist -print0 | xargs -0n1 plutil -replace BuildMachineOSBuild -string 16A323
Visit developer site stubyte`s answer.
In the "General" view,
inside the "App Icons and Launch Images" section,
make sure that "Apps Icons Source" is linked with the "Images.xcassets" file.
Since you mentioned the icon filename is not in the Info.plist you'll want to add:
<key>CFBundleIconFiles</key>
<array>
<string>Icon-120.png</string>
</array>
It appears to be required now in order to associate the icon(s) with your app.
In my case, for some reason the AppIcon asset was not part of the app target. Checking this checkbox solved the problem:
Another Simple Fix once discovered:
I had a similar issue with XCode 9.0, a project that worked perfectly well under XCode 8 and iOS 10 suddenly loses it's icons (only on iPads) when I upgraded the solution.
Tore my hair out, did the sRGB thing, did the Transparency thing.
Turns out I still had the following empty entry in my targets info.plist file
CFBundleIcons~ipad
I'd long ago moved to specifying this in the target build settings.
The solution was to simply remove this entry from the info.plist file (clicked the helpful little "-" button. Rebuilt and tested and everything was perfect once more.
If you are using an images.xcassets file, be sure it is included in the Build Phases > Copy Bundle Resources list. I inherited a project that did not use this, migrated to use this file for App Icon, but did not add it to the Copy Bundle Resources list. Now, you would expect a better error message, but this fixed the problem. (So did editing the plist file as per Sahil above citing stubyte.)
I also faced the same problem, I created an app icon by this URL:
https://appicon.co/
for iPhone and iPad. It gives me a .zip file, I unzip it and move "AppIcon.appiconset" in my application's xcassets.
Now clean the project and create a new archive and upload it to the AppStore and it worked,
Thanks
Just had same problem. Using Xcode 8.3.3 and wanted to use AppIcon in Assests catalogue. Tried all sorts of Stack Overflow answers without success.
Finally learned about a deep clean step from Ken/Apple Forum:
removed all icon files, whether from resources (delete - trash) or appicon file (select - remove selected items); removed even assets folder
deep cleaned (Use the Product menu w/option key pressed, then choose to 'clean build folder')
added a new asset catalogue and called it "Assets" right clicked in Assets folder and added new app icon set - changed that one in inspector to be for iOS >=7
triple
checked all my icon files OUTSIDE of Xcode (all were already png files of right resolution, but some had still colour profile attached from photoshop elements or did have indexed colour instead of RGB profile. so I made sure I only save a png file without colour profile and from a background layer) - not sure that was necessary
archived the build from Product menu
validated and uploaded the build from Window - Organizer
If you have added all icons files to the "images.xcassets", it could be possible that you have forgotten check the "Target Membership" in the right panel of Xcode.
You will can to clean your project, archive it and send it to iTunesConnect.
I was able to resolve the issue by copying the below-given code in PodFile.
post_install do |installer|
copy_pods_resources_path = "Pods/Target Support Files/Pods-PROJECT_NAME/Pods-PROJECT_NAME-resources.sh"
string_to_replace = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"'
assets_compile_with_app_icon_arguments = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${BUILD_DIR}/assetcatalog_generated_info.plist"'
text = File.read(copy_pods_resources_path)
new_contents = text.gsub(string_to_replace, assets_compile_with_app_icon_arguments)
File.open(copy_pods_resources_path, "w") {|file| file.puts new_contents }
end
Let me know, if this works for you.
If you're like me:
Uninterested in hacks
Brand new to XCODE, just trying to get your React Native or Wrapper app to build and upload
Running Xcode 9
Didn't declare icons locally properly
You may have made my mistake and you're not actually having the problems that others here are having. You just need to put the icons in the project!
My simple solution:
Create a 80x80 icon named Icon-40#2x.png
Create a 120x120 icon named Icon-60#2x.png
Create a 1024x1024 icon named Icon.png
Open XCODE
Navigate to Images.xcassets, which presents you with several places to drag icons to
Drag Icon-40#2x.png to Iphone Spotlight iOS 7, 40pt, x2 box
Drag Icon-60#2x.png to Iphone App iOS 7, 60pt, x2 box
Drag Icon.png to App Store 1024pt
Re-archive and retry upload... success!
In my case, I've created new icons for the application using this site.
This error happens because there is no icon of the size indicated in the error.
In my case it was icons of different sizes that did not exist.
https://appicon.co/#app-icon
We had an old legacy project from 2015 and Xcode 6. It was using an old cocoapods integration. None of the other proposed solutions worked so far. After banging my head for a couple of hours I found the solution.
We just needed to update cocoapods and rerun pod install. In fact I deintegrated cocoapods and integrated it from scretch, but maybe a pod install would've been sufficient.
after wasting my almost 1 day and trying every possible solution available on the internet, but nothing worked.
Finally, I got the actual problem and the way to solve. Here we go.
The actual problem is that your image assets (Images.xcassets) are not linked with your target project. Now solution,
Go to the Build Phases of your project.
Add Copy Bundle Resources from the add icon on top if not already added.
Then inside that add Images.xcassets.
That's it.. you are done. Now, it should work fine.
How I got the solution? Just compared the configurations of a newly created project with my current project. And voila.
Make sure plist MinimumOSVersion > 6.0
TLDR: beware of special characters in your app's display name a.k.a. "Product Name".
My project is new (created fresh in Xcode 9 a month ago) and we had correctly-sized assets for all the image groups (app icon, settings, etc.) dragged into the xcassets file. I was getting these errors about missing icons of exact sizes when uploading to App Store Connect API, both with fastlane as well as within Xcode. This was the first time uploading this particular app.
I wasted a few very frustrating hours on this issue, and tried various things to no avail, that are mentioned online:
cleaning all build folders
recreating the xcassets file, making sure it is in the correct build phase
naming the files the "old way" (e.g., Icon-60#2x.png etc.) before dragging into the AppIcon inside the xcassets
verifying the project points at the right xcassets file for App Icon
I could go on...
In the end, on a hunch, I tried to rename the app (that is, the "Product Name" in Xcode project's settings, which is shown on the user's home screen under the app icon) because ours contained a tilde ~ (our app is a retro themed game called SOMETH~1.app). Removing the tilde fixed my issue. I became suspicious because the output files from the build are literally called what you put into the "Product Name" field, and so I could imagine that on the server side the path with tilde is being handled incorrectly. It never gave trouble in iOS Simulator or my device, but there you go! FWIW I did submit a bug report, but have yet to hear back from Apple.
Thought I'd post my experience in case somebody else out there runs into the same problem.

Can you help in App submission status "Invalid Binary" with error "Invalid Swift Support" and "Missing required icon file"?

I am getting following error in email, when i submit the binary in iTunes app store with Application loader or XCode
Dear developer,
We have discovered one or more issues with your recent delivery for
"simpleExercise". To process your delivery, the following issues must
be corrected:
Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and
resubmit it.
Missing required icon file - The bundle does not contain an app icon for iPad of exactly '167x167' pixels, in .png format .
Once these issues have been corrected, you can then redeliver the
corrected binary.
Regards,
The App Store team
For solve Invalid Swift Support i made EMBEDDED_CONTENT_CONTAINS_SWIFT flag YES and NO one by one.
I tried both and submit app to app store but not able to solve the issue.
AND
For solve Missing required icon file i added app icons files to project bundle.
Please refer below screen shot for all required icons in universal app (iPhone / iPad).
As per apple documentation in above image selected image (Icon-83.5#2x.png) size is 167 X 167.
Though iTunes team can not get this image and send me a email that Missing required icon file.
I am using XCode Version 7.3 (7D175) with Swift 2.2
Can you help me for solve the above both errors?
For "Missing required icon file", you just need to add that icon and I hope you have already done that!
And for the "Invalid Swift Support", I had the issues with Application Loader since Xcode 6.4. So, I started uploading the app from the "Organizer" (Xcode > Window > Organizer > Upload to App Store).
This solves the problem.
Follow This
Open this web site MakeAppIcon and add your 1024 Size icon for resize all size as per apple required.
Then after enter your mail id and you get all size icon with ASSET FOLDER in your mail. Download the mail.
Replace this folder with your current folder.
After expense many hours / days i am getting my answers my self.
In project Info.plist file i have to add particular file Icon-83.5#2x.png which size is 167 X 167.
That's it.
Nothing more.
Please see attached screen shot for more understanding.

AppStore Push issue with appcelerator

I was developed an application using titanium-Appcelerator. I was stuck with
Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format'
Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '76x76' pixels, in .png format
Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '152x152' pixels, in .png format
error while submitting titanium application to AppStore. I developed this application in "CLASSIC'' framework in Titanium. I had referred to many docs and forums regards this issue.
I had tried by setting appicon names as " appicon-60#2x.png,appicon-76#2x.png,appicon-76.png, etc as per guidelines in Project-Name/Resources/iPhone even it was showing the above issue repeatedly while submitting.
What is the list of .png filenames you have in Resources/iphone?
The files you need for the sizes you list are:
appicon-60#2x.png (120x120)
appicon-76.png (76x76)
appicon-76#2x.png (152x152)
You could use the TiCons CLI to generate all the icons using a single 2048x2048 file.
I had this exact issue even though I had all the files correctly named and in the right directory.
I was able to validate my app successfully after cleaning the project in Appcelerator Studio (Project -> Clean), and re-running the distribution build. Subsequent builds would not pass validation (same error) unless I cleaned again in between builds.
(I am using Titanium 7.1.0.GA, Appcelerator Studio 5.0.0.201712081732, and Xcode 9.3)

Your binary is not optimized for iPhone

I read the answers to questions similar to my question in stackoverflow here, here & here but could not solve my issue.
I get the below error while trying to validate my binary with xCode 5. I sent two month ago another version of this binary and it was accepted and put on the app store. I have the proper launch images for iphone 5 & 6.
It says:
Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image referenced in the Info.plist under UILaunchImages with a UILaunchImageSize value set to {320,586}. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support....
As you can see this error differs from what was brought up in other questions on this topic.
Any help would be appreciated.
Thanks.
Do you localized your launch images?
If you do, I had some problem for that and found a way to solve it.
https://stackoverflow.com/a/26872153/2632955

Resources