Submitting application to Apple store - application failed codesign verification - iphone

I tried to upload my iPhone application to the App store, but received the following error: The binary you uploaded was invalid. The icon file must be in .png format.
The icon file IS in .png format, size 57x57, so assumed it is a bug and tried to upload with Application Uploader, when I got another error:
Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate.
I followed every single step, and it is not working... it is driving me crazy! Please advise what should I do!

First, check that the icon file is in .png format, rather than .PNG format.
Second, take some deep breaths, look out a window for a few minutes, and then go back over the steps to upload your iPhone application.

Many people were confusing (like me) modifying the code signing property of XCode.
You must ensure that your code signing identity property start with
iPhone Distribution : Developer Name
instead of
iPhone Developer : Developer Name
PS : If you have no option start with iPhone distribution, you didn't get production certificate yet.

Since you haven't mentioned anything regarding the fact that you did sign the code, I'm going to assume you didn't.
You'll need to get your application code signed in order for it to be accepted, so that the phone knows it's from a trusted developer, and not just a virus someone has uploaded.
Do you have a code signing certificate?

Related

Weird Trouble IOS Iphone App to Application Loader - Mac Flash Pro CS6

This is about the 5th time I have deleted all certificates, made new ones, republished, and tried to load. I seem to get the same errors every time. I am sure the provisioning and certificate are for distribution and not development.
It seems only one little section of the adobe help mentions the zipping and unzipping. Is this hackish method really working for people? Is the ipa the only file including in the zipped folder?
When I do this, unzip it, and go into the payload folder I see the file APPNAME.app, but it looks like a piece of paper with a big white circle with a line through it. When I try to click on it the mac says, “can’t open this file”
Is this normal? I zipped it and tried uploading but I am still getting these errors:
Unable to extract codesigning entitlements from your application. Please make sure rufood8 is a valid Mach executable that’s properly codesigned.
Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an Iphone distribution certificate.

Uploading to the Appstore

Finally, I have completed my first application successfully, but I had two issues since last night while uploading.
Appnametests.octest is in redcolor.
right clicking on .app and 'show in finder' is redirecting to debug-iphoneos folder. which, when compressed and uploading with 'Application Loader', is giving an error 'Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone Distribution Certificate.'
When I was playing around, I went to the 'Release-iPhoneos' folder, compressed the .app file, and uploaded and suddenly the file has been uploaded.
My question is,
Did I do anything wrong?
Is there a chance that my application could get rejected?
First of all relax. Appstore uploading is not that difficult. It's confusing process when you do first time. It's important you follow all the steps correctly. However, you can anytime go and re-upload the binary on iTunes Connect.
It's better to upload your app from Xcode. Assuming you used XCode to upload your app.
Before you are ready to upload the app on app store. You have to select your distribution certificate in your app settings. This " 'Application failed codesign
verification. The signature was invalid, or it was not signed with an iPhone Distribution Certificate." error indicates that you had not selected the distribution profile. I'd suggest you to reconfirm this. You can check this to create distribution certificate.
Once this is done you have to make your app status on iTunes connect as "Ready To Upload".
Then you go ahead and distribute you app. Which gets submitted to app store for review.
When your binary is successfully uploaded your app status change to "Waiting For Review"
1.Did I do anything wrong? - If you have missed any of above step you might have made some mistake.
2.Is there a chance that my application could get rejected? - If you have made any mistakes that means your binary isn't uploaded properly. So this is irrelevant.
If you feel there's something wrong then instead of waiting for next seven days and app telling you we didn't receive your binary. Just delete the correct binary if necessary follow the steps given here

mobileconfig file with mdm payload, is invalid profile

I'm trying to install .mobileconfig file that was created through IPCU.
but when I click on an attached .mobileconfig file in mail.
It occured error message as "invalid profile".
what is problem ?
if the certificate is problem, please let us know how to make.
Below is the procedure I created the certificate.
in keychain, After navigate Keychain Access/Certifiate Assistant/Certificate generate,
I have generated Certificate. and exported .p12 file
.p12 file is used to Credentials setting in IPCU
You could be having any number of problems, but the one I've seen most often is that you're trying to install an encrypted profile and the device can't find the appropriate private key (which must be on the device prior to receiving the profile, and is required for decryption).
Your best bet is to get more information on the problem, which you can do by connecting the device to your Mac or PC, selecting its entry in iPCU (in the left-hand column—the entry that only shows-up once you connect the device) and clicking on the Console tab. This will give you access to the device's system log file, which generally contains a lot more info on what the real issue is.
The process you used to create the certificate seems reasonable enough and isn't likely the reason you're getting the error; I couldn't say much more than that without knowing what you're using the certificate for.
Did you sign the mobileconfig file? If yes, have you tried not to sign it?
Usually this error message pops up if you are trying to download iOS from macOS. So tap that same link from an iPad instead of on macOS, or choose the iTunes-based download method (iOS Restore Images), and upgrade from iTunes.
https://forums.developer.apple.com/message/234381#234381

Error after binary is uploaded to iTunes

I get the following message once the binary is uploaded.
Your binary has been received but does not meet all the requirements for submission
What things could be wrong? It works fine on a device.
You need to make sure that your binary has the required artwork, icons and is signed properly. You should suit using the application loader. Using Xcode will work but won't tell you what your issue is.
You may have:
Signed with a development certificate instead of a distribution certificate
Not included the 512px square iTunes artwork
Not included default launch images
Not included icons
A space in your binary name. This may happen if your project name has a space in it. Just rename it in Finder.
I referred to the below link and followed the steps as mentioned by Riceo
What can cause "invalid binary" with no email followup from iTunes Connect?
It gave me following Error while validating in Organizer as my appname needed to contain whitespace
My app.ipa filename may not contain whitespace
Then I reffered to below link and followed the steps as mentioned by Johannes Fahrenkrug
How do I change my iPhone App binary filename
It finally worked and finally my app status changed to Waiting For Review
Hope this helps all.

iPhone app code-signing error - "...the signature was invalid..."

I am trying to upload my first iOS app to iTunes Connect, but I am unable to do this because every time I try to upload it, I receive the following error from Application Loader:
The binary you uploaded was invalid.
The signature was invalid, or it was
not signed with an Apple submission
certificate
I have followed the instructions on the Apple website to the best of my ability. I have noticed that the .mobileprovision file that should be in my built .app file is missing - does anyone know what would cause this particular part of the problem to happen? I suspect it could be the root cause.
Moreover, does anyone have any other suggestions as to how I might correct this issue?
on the agent account in developer.apple.com
You must create a distribution certificate
You must also create a Distribution Provisioning Profile.
Download both of these and drag them onto xcode.
In the target info for your project you need to go to the code signing section and make sure you have selected your distribution profile.
Another thing you may need to do is create an entitlements file, declare this under 'code signing entitlements' as described on the apple page here
http://developer.apple.com/iphone/manage/distribution/index.action