iPhone and App Certificates and APPID''s - iphone

So I have a few questions here.
I started doing App development a while ago and am starting to submit Applications. And my question site mostly around the APPId's. Reason I am asking is because I am getting signing error's, and I think this is why.
com.Company1.App1
com.Company2.App2
or
com.MyCompany.App1
com.MyCompany.App2
I am using the format of com.MyCompany.App1 and com.MyCompany.App2, and I have recently created the APP ID's and provisioning profiles, have them installed, have them selected in Build Settings for Distribution. I have restarted XCode done a Clean on the Apps before Building them. But it keeps giving me the error and therefore I can't upload to the App Store.
Also, I assume you just create one Certificate for all your apps, using the Company Name you have in your App Developer Profile online...correct?
UPDATE: Here is the specific error message. Also it's XCode 4 and when I goto Project->AppName->Build Settings, the correct Distribution profile is selected under Distribution.
Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)

Go to Target->yourapp->Get Info->Build in xcode and selected appropriate profile in code signing identity.
Let me know if you have any question.

Related

Yet another ERROR ITMS-90161: "Invalid Provisioning Profile"

Over the past couple of days I've worked my way through all the prior posts on here that I could find that seemed to be related (many of them appear to be horrifically out of date and less than useful now), as well as the Apple Troubleshooting and Maintaining Your Signing Identities and Certificate guides (not to mention the usual Internet searches).
The app in question was deploying fine until the latest XCode update, but now fails to upload (build is successful obviously, and there have been code changes as well):
ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle *content removed* is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."
It's not the first time I've mysteriously had a failure like this, but in prior cases simply revoking the certs, removing the profile, then rebuilding would take care of it. Not so in this case.
The provisioning profile is confirmed to be the correct type, and the code signing certificate sure looks like it's in there... Certificate gets a nice green checkmark too. Any new suggestions not covered in the usual places?
It turns out that there's nothing wrong with the certificate itself, but it's the upload process which needs to be done different.
In the past I had been deploying the distribution outputs from Cordova CLI via the Application Loader. The App store no longer accepts my builds when done that way.
With the current version of XCode, I need to use the GUI now and set the build target to "Generic iOS Device" and then do an "Archive" operation. The archive will upload the app through a different loader, which the App store will accept.

iPhone Application Loader Troubleshooting

I'm trying to upload the next version of my iPhone application through application loader, but I receive this error...
Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate.
I'm not exactly sure if this is what is wrong, but I took a screenshot of Xcode to show you guys...
I've submitted my application via Application loader before, and I think I had the same problem, but I can't remember what I did...
Starting with Xcode 4, you can use it to submit apps to the App Store. See this
link for more information on how to do so.
Open the Organizer in Xcode and have a loot at your provisioning profiles. How's their status? Are they marked with "!"?

No unexpired provisioning profiles found that contain any of the keychain's signing certificates

I've asked a question related to distribution profile yesterday because it was invalid in Xcode Organizer. That problem has been solved by deleting my certificates and redownloading new certificate.
Now, I have a different problem with submit my app to App store.
I'm using Xcode4.3.2.
I think I have seen all kinds of homepage or similar question with this " No unexpired provisioning profiles found that contain any of the keychain's signing certificates" error, but still I cannot find out how to solve this....
My both developtment provisioning profile and distribution provisioning profile status are valid in xcode organizer, so I select in Xcode Product -> Archive, then I get above error.
My Build Setting's Code Singning is like this;
Code Sining Identify:Mutiple values
Debug:Dont Code Sing
Any SDK:iPhone Developer iPhone Developer(for Application identifier 'myAppname')
Release:iPhone Distribution iPhone Distribution(for Application identifier 'myAppname')
Any SDK:iPhone Distribution iPhone Distribution(for Application identifier 'myAppname')
Any iOS SDK:iPhone Distribution iPhone Distribution(for Application identifier 'myAppname')
If I change the Release Any iOS SDK part to iPhone Developer form iPhone distribution, then build succeeds, but another error occurs..."No identities are available for signing" similar to this question
And even if I click "Download Identities", it doesn't work..
Does anyone know how to solve this problem...?
I would highly appreciate if you could tell me what to do.
I'm sorry for my bad English and illegible writings..
Thank you in advance.

Xcode says: "Identity ___ is not trusted." and won't allow me to submit my app

I've been living the nightmare of trying to submit an app to the iTunes store... The newest massive waste of time is an error message that I get when I try to validate or distribute my archive from the "organizer".
The exact message is:
My Xcode is version 4.3.2. I'm pretty sure my WWDR is installed, because this has never been an issue before. I also tried to re-install it just to be safe.
The most frustrating/confusing part is that I JUST submitted my app successfully two weeks ago and nothing was changed. My app was rejected for meta-data reasons. I fixed those issues, re-installed one of my plugins, and now this.
Any suggestions? Even a link to some helpful documentation would be great. I've found the Apple developer docs extremely confusing and UN-helpful.
EDIT1:
I think I may have gotten closer to the problem. I changed some of the build settings and now my build fails with this error:
Code Sign error: Certificate identity 'iPhone Distribution: [my name]' appears more than once in the keychain. The codesign tool requires there only be one. I want to fix this but I'm not clear on which code signing profile should be set where. There are different settings depending on whether I click the "project" icon or the "target" icon and each of those has four different choices. Do all of these require code signing? Can anyone give me an example of a working configuration?
EDIT2:
I think I maybe found the problem. There is a small note that says my Distribution profile has no provisioning portal. I've been downloading and installing new .mobileprovision files but they all say "Developer". I think just need to figure out to download a new distribution profile.
SOLUTION:
Thanks to some pointers from Saad (see below), I figured out what was wrong. I was using the auto-select option for code signing, and the only distribution profile had an invalid provisioning profile. This happened very quietly, and I'm not sure why. I only noticed it when I went back into the provisioning portal to create a new distribution profile. After installing this, everything works.
your provisioning profile is not properly set
Code Sign error: Certificate identity 'iPhone Distribution: [my
name]' appears more than once in the keychain. The codesign tool
requires there only be one.
Open Applications > Utilities > Keychain Access and search for your Distribution certificate. Sometimes the Xcode Organizer decides to generate a new certificate for you and invalidates your old one, but does not remove it from your keychain. Remove the expired/older certificate and quit/re-launch Xcode (make a backup first, in case, by dragging to Desktop or Exporting). That should at least clear up part of your problem.
As for the provisioning profile, if that still is a problem, I'd manually go into the iOS development center and download the App Store Distribution Provision Profile for your app, removing all other provisioning profiles, until you figure this out. Quitting and relaunching Xcode when dealing with certs/provisioning profiles is something I've always had to do.
project identifier and your profile identifier must match

failed codesign while building iphone app [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
iPhone CodeSign failed
ok, i know - often discussed - less solved. i want to build my app with an valid provision profile, downloaded from page and administrated with the xcode organiser. but nether the less i got
Application failed codesign
verification. The signature was
invalid, or it was not signed with an
Apple submission certificate. (-19011)
i have the private key and the corresponding certificate in my keychain... so i have no idea, what to do now.
Do you have an Apple Worldwide Developer certificate in your keychain?
Do you have a provisioning profile for the app you're building?
Is this provisioning profile valid for the device you're building to (You can see this by going to the Organizer in XCode)?
Does the bundle identifier of the app you're building match the identifier in the provisioning profile you are signing it with?
N
i tend to see it like that:
Multiple Certificates/Provisioning Profiles in one Xcode organizer?
despite that strange error - it is posible to provision the app on several devices. so i think i need to use the distrib. profile