getting error when provisioning in xcode - ios

What I am having in Provisioning of the account is
Then I am downloading both of them and drag into Organizer/Library/Provisioning Profile. However, I am always getting these status
What I am missing in the middle..Please advice on this issue.

This issue occurs when your private keys for your iOS development certificates are absent on your machine. This occurs for example if you have installed XCode on a new machine.
Apple provide steps by steps instruction here for this kind of error.
This issue has been resolved already on another post where you will see you have two possible solutions:
The easiest consist to transfer your development profile from your old machine to your new one.
Revoke and generate a new development profile by generating a new Certificate request with Keychain

Related

Bitrise "deploy to itunesconnect" step failing despite having profiles and certificates

Context
I've been using Bitrise to deploy one single app on both Android and iOS.
It's always been working fine, knowing that the initial configuration had been done by a coworker who doesn't work with us anymore. I've mostly been maintaining the workflow and changing expired certificates/provisioning profiles so I don't know the initial configuration details.
Problem
Recently we decided to split our app in two different apps from different repositories, so I needed to create a new Bitrise app.
Here’s what I’ve done:
Created a new app on Bitrise based on our new repo
Added the exact same steps that were in the other app
Added all the same env variables
Connected to Apple via Apple ID, tested the connection via the button on Bitrise (which was successful)
Deleted all the old profiles on my Mac, archived the new app from XCode (v.13.4.1) and ran the Bitrise scripts that uploads the certificates and profiles (app-store and development) on the platform.
My certificates were successfully added to the project in the Code Signing tab.
However, when building, the step « deploy to itunesconnect » systematically fails with the following error:
"Invalid Provisioning Profile. The provisioning profile included in the bundle xxx 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
I find it weird because the « Certificate and profile installer » step is successful. I’ve tried several things suggested on forums (including stack overflow), for example adding the certificate on Bitrise directly downloaded from Apple connect (no Bitrise script), or creating a new certificate directly on Xcode, but nothing worked. People who had this error seemed to have issues on how their certificates themselves, but I'm wondering if I didn't do something wrong even before.
At this point I am a bit stuck. Anyone have an idea on what I could be doing wrong?

Your account already has a valid iOS Distribution certificate, Enterprise Distribution

I get this error when I want to export my project for Enterprise Distribution. But the funny thing is that I have all my certificates installed on the machine, so nothing should be wrong. Why can't Xcode import them if it knows I have a valid one? This is just stupid! Always these kinds of problems when distributing iOS apps, and always a different problem every time, with the certificates.
Here is the some reason for this error.
Your app is already live or review in appstore at that time this error is occured
Solution
you can clear DrivedData and make a new build file
Create a new AdHoc Provisioning And Download and after select that
certificates and make new build file
I hope this help you.

no valid 'aps-environment' entitlement string found for application while debugging on xamarin for ios

I am working on xamarin for ios.
Its was working on my older machine. But, then i had to switch to new machine and recreate all the certificates and everything for the new machine.
I have created the app ID. Then created the aps certificates and then created the provisioning profile.
In Debug I have provided the downloaded provisioning profile. But still I am getting this same error. And my app is unable to get the device token.
I am searching a lot since last night. And have done the following things with no success:
Regenerating provisioning profile and trying with the new one
I also deleted the app id itself. Recreated everything from start. All Certificates, app id, provisioning profile
Deleted all the provisioning profile from my system and device. Created new profiles and installed them.
Above are three most common solutions i found in my searches, but to my dismay nothing is working for me.
If you have any idea please throw at me. I am in a great need for that. Its holding me from submitting the app.
Please help.
The problem was xamarin studio itself. It seems that after updating form stable 5.2/5.1 version to 5.3 this issue surfaces. So i deleted the app and installed it again which game me v5.2. Now i am not udpating till i publish my app.
This link is full of people facing this problem:
http://forums.xamarin.com/discussion/22502/xamarin-studio-5-3-push-notification-error
did you add the App's Development SSL Certificate to your keychain? when enabling push notifications for the App ID you should generate a Development SSL Certificate for the App, download it and add it to your key chain.

no valid 'aps-environment' entitlement string found for application when trying to enable push notifications

I've been reading all the other questions asking about this error and it seems like I've followed their solutions but I'm still having this problem. I removed all the existing provisioning profiles and app ids. I created a new app id that has push enabled. I created a development provisioning profile with push enabled. On the Apple dev site, that provisioning profile has a green "active" indicator next to it. In xcode5, under preferences>accounts, the provisioning profile is listed. Under window>organizer, the provisioning profile appears under my device with the status "valid profile". But the error is still occurring. What am I missing here?
Edit: I want to make it clear that I created my provisioning profile AFTER creating the APNS certificate since that seems to be the most common solution to this.
Of course I figure out what's wrong right after typing a question - the bundle identifier in xcode did not match my appid, and I forgot to update the certificate I uploaded to urban airship after restarting the configuration process.
Looks like you fixed the issue, but I got this issue when I moved to a new machine. Turns out I forgot to bring some certificates from my old machine. I fixed it by importing certificates from old to new.
Steps are:
Export certs on old machine as .p12.
Copy them to new machine.
Double click on file(s) to put them in Keychain Access on new
machine.
In Xcode on your new machine, go to Xcode > Preferences > Accounts, then
refresh the provisioning profiles.

"The private key for ... is not installed on this Mac" – distribution and provisioning profiles in Xcode

I've tried looking at the other answers for this but there's a lot of incomplete or conflicting information, but if you have a good link that would be great.
When I try to distribute my app I get this error:
I've tried creating a new distribution profile from Certificates, Identifiers & Profiles at developer.apple.com, but none of these seem to work.
I have a Time Machine backup from before I did a clean install of Mavericks to upgrade, and I also have a code saved to a text file in my Dropbox (I'm not sure if it's a private key – I doubt it) which looks like 'df9a79...' around thirty characters long.
I just can't seem to find the right link to guide me through the entire process of key creation, iTunes connect and developer.apple.com. I've done this before – I'm currently just trying to submit an update to the App Store.
My app update status is currently Waiting For Upload.
Here is my Keychain:
I've tried removing duplicates (e.g. those in the first screenshot), but that didn't seem to help. If you have any suggestions or links I'd love to hear them.
Thanks for your help.
In your keychain, there are two keys named 'Matthew Palmer'. Those two entries for the same name can be conflicting. Try by removing those both and install it again.
I hope you make a Distribution Provising Certificate at developer.apple.com.
Chose that profile there , if you are not, create that, first you need to create that certificate before proceeding.
I had this problem and eventually realised that I'd originally installed my provisioning certificate on another machine. The private key was only on that machine, and there was only a public key on my new machine. I needed to install my private key on my new machine so I could sign my app and submit it.
On my original machine, I went to Xcode>Preferences>Accounts and used "Export accounts" (under the cog) to save a copy of my accounts. I transferred the generated .developerprofile to my other machine and dropped it on Xcode there. That installed the private key for the provisioning profile on that machine and I was able to submit my app.
Another resolution to this is restart Xcode. I had the same issue after creating a new provisioning profile, and after restarting Xcode I no longer had the issue.
After experiencing this error, I tried submitting to the app store via Application Loader, signing the app with my AdHoc certificate instead of the app store certificate, as that one didn't generate the same error.
The submission was accepted by Apple with no validation errors.
This is a temporary workaround, but it may be helpful if you need a quick submission.

Resources