Adding provisioning profiles without Apple's account - ios

Im having troubles to generate IPA's from a project. I have the Certificate in my keychain but now i cant add the provisioning profile.
I read that in Xcode 5 this is handled by the Xcode, so you have to add an Apple developers account.
Is there any way to skip this step? I have the provisioning profile downloaded.
Thanks and regards

Opening provisioning profile with Xcode will copy it to appropriate folder, so you can select it from project settings. Xcode will check /Users/youruser/Library/MobileDevice/Provisioning Profiles folder and you can also move you provisioning file there.

You need to have an Apple developer account to get provisioning profiles. When you got one go to Preferences -> Accounts -> Click on the + button.

Related

Error "Invalid Provisioning Profile Signature" while trying to distribute a Flutter app in iOS

I’m trying to send my build to the store, but when I'm trying to distribute the app with Xcode, I get this error:
Invalid Provisioning Profile Signature. The provisioning profile included in the bundle 'com.grafenit.velyvelo' (Payload/Runner.app) cannot be used to submit apps to the iOS App Store until it has a valid signature from Apple. For more information, visit the iOS Developer Portal. With error code STATE_ERROR.VALIDATION_ERROR.90165 for id 73638f81-3103-4f98-a8f0-d0dd2a01edcc
How can I fix this?
I faced this issue this morning.
To fix it,
Just get Xcode to re-download the provision profiles by deleting everything here: ~/Library/MobileDevice/Provisioning Profiles
Open Xcode Preferences, navigate to Accounts, and click Download Manual Profiles
I revoked our distribution certificate on developer.apple.com and generated a new one. I was then able to upload to App Store Connect again.
I got this error on Xcode 13.2 (macOS v12.2.1 (Monterey)).
It's pretty easy to resolve:
Go to Xcode → Preferences...
On the new window, go to Accounts → select your Apple ID
Then, select your team, click *Manage Certificates...
Then, click on + on the left bottom, and click Apple Distribution
After that, click Download Manual Profiles
You can now Archive and it will work fine.
Create a new distribution certificate through Xcode. I have just done this and it now works.
Preferences → Accounts → Choose team → Manage certificates → + Apple distribution → Archive and upload.
Solution:-
Go to https://developer.apple.com/account/resources/profiles/list
Open the provision profile
Press Edit in the top right
Press Save without making any changes This will regenerate the profile with the correct CAs.
Now delete the ~/Library/MobileDevice/Provisioning Profiles folder and let xcode redownload the profiles again.
This is Work for me.
It has been an error since the Xcode 13.3 (13E113) + macOS v12.3.1 (Monterey) update from Apple.
You need to just regenerate Provisioning Profile, without the need to regenerate certificates.
It was resolved as per Invalid Provisioning Profile Signature - STATE_ERROR.VALIDATION_ERROR.90165
You must be using an old provisional profile certificate. Just regenerate it again and you will be good to go.
I resolved the same issue after following these steps:
Recreate Distribution Certificate (Make sure it should be Apple
Distribution).
Regenerate Provisioning profile by selecting the new
Certificate.
Open Spotlight, search and delete all Provisioning profiles from ~/Library/MobileDevice/Provisioning Profiles
Delete all previous Archives from /Users/YOUR_USER_NAME/Library/Developer/Xcode/Archives or you can go to the folder by clicking Xcode -> Preferences -> Location and got to the Archive location mentioned there.
Delete Derived Data by following the same step mentioned above.
Clean the Project (Cmd + Shift + k)
Archive again, Select the correct Provisioning profile while uploading the build.
Hopefully, this will help.

How to reset app signing process in Xcode

I can’t sign my app in Xcode, therefore I’m looking for a way to completely reset everything I have to in order to be able to sign it. I did
Revoke all certificates in the certificates, identifiers & profiles menu in http://developer.apple.com
Delete all provisioning profiles in http://developer.apple.com
Delete all iPhone development and iPhone distribution certificates in my keychain
Delete the provisioning profiles in Xcode
and then
Create new certificates in developer.apple.com
Create new provisioning profiles in http://developer.apple.com
Download certificates and add them to my keychain
Use new provisioning profile in Xcode
Unfortunately I’m still encountering this error (item can't be found in keychain), which leads me to the assumption that I did not successfully reset all the app signing process in Xcode. Can anyone give me a hint?
I had this issue last week with my own app. I did multiple things to fix this at once, so I'll tell you what I did, and hopefully one of them works.
Try:
Removing and deleting all certificates, devices, and provisioning profiles from your developer account and recreate them.
Download the developer and distribution certificates, and right click on them to add them to your keychain.
Download your provisioning profiles to your mac and right click on them to add them to whatever they get added to.
MAKE SURE YOU HAVE AN ACTUAL DEVICE ADDED TO YOUR DEVELOPER PROFILE ON DEVELOPER.APPLE.COM
In xcode, go to accounts and make sure you are signed in with your developer account and you have the correct profiles downloaded. In your app's build settings/signing settings, make sure you don't have your "Personal Team" profile ANYWHERE that it asks for some sort of signing/developer/provisioning Profile.
If this answer helped you, please mark it as the answer.

xcode7 archive ad-hoc ipa can't include all devices, xcode6 is good

i don't understand why xcode7 can't archive ad-hoc ipa including all devices, xcode6 is good for that.
I can make sure that my certificates is good and include all devices.
Anyone else met this problem?
I had a whole bunch of issues when updating to xcode 7 and archiving. My solution was to delete all of my provisioning profiles and certificates from the member centre and create them again. Making sure i had created the correct distribution ones.
Ad-hoc uses distribution provisioning profile so make sure that is correct.
For future reference, I'd like to share my experience in dealing with provisioning profiles.
We surely need to generate our provisioning profiles from Member Center of Apple Developer. After adding the user's devices (UDID), download the latest provisioning profiles to local.
Completely quit Xcode and drag the new provisioning profiles on the icon of Xcode. Now Xcode can find the provisioning profiles you just generated.
Open Xcode, and go to Xcode -> Preferences... -> Accounts -> View details..., we will see all the provisioning profiles saved on the mac. Just right-click any of them, and reveal it in Finder.
Look for the newest file which is the provisioning profiles we just added. We can open provisioning profiles with any text editor in order to check AppIDName and which ProvisionedDevicesare contained in it. In this way, we can delete outdated provisioning profiles easily in case Xcode doesn't pick the right provisioning profiles.
After archiving and exporting the .ipa file, we still can make sure whether all the user's UDID are included.
Rename the suffix .ipa to .zip, and now the icon should look like a normal .zip file.
Extract the .zip and a new folder named Payload appears. Open that folder and Show Content Packages, we will see an file called embedded.mobileprovision.
It is same as the provisioning profile we generated at the beginning if we have done everything correctly.

Error Code-90161 Invalid provisioning profile

ERROR ITMS-90161:"Invalid Provisioning Profile
I have created IPA using Xamarin IOS in ad-hoc mode and selected a adhoc provisioning profile. but while uploading, following error annoying me :(
when I uploaded using application loader:
ERROR ITMS-90161:"Invalid Provisioning Profile.The provisioning profile included in the bundle x.x.x.x[Payload/x.x.x.app] is invalid.[Missing code-signing certificate.] For more information,visit the iOS developer Portal."
If you get this error, you probably don't have the correct type of Provisioning Profile. There's a few types of Provisioning Profiles, most notably are the "Development" and "Distribution" profiles. I suggest looking at your provisioning profiles, and if necessary recreate them.
To elaborate: You have 1 Certificate (created via Xcode Certificate Generating). With this Certificate, you can create an "App Identifier", and Provisioning Profiles. You can use the same Certificate for both a Developer Provisioning Profile and a Distribution Provisioning Profile. They don't work with one another, meaning a Developer Provisioning Profile won't work for a release build, and a Distribution Provisioning Profile won't work for a debugg build.
Try this, and see if that helps. Be sure to haul the new profiles in Xcode (or any other method you'd use) and edit your project's settings.
Good luck!
Love and regards,
Björn
My issue was related to having Xcode Automatically manage signing. What finally fixed the issue for me was going into the developer portal, selecting Certificates, and revoking the Distribution Managed certificate. I then rebuilt my project in Xcode, keeping the checkmark enabled to Automatically manage signing, and a new Distribution Managed certificate was automatically created in the developer portal under certificates. Distributing the archive to the App Store no longer produced any errors.
This issue also came up in other projects where I manually manage the Provisioning Profile. What worked for me was doing the following on the developer.apple.com portal:
Revoke the existing Distribution Certificate linked to the app's provisioning profile.
Issue a new Apple Distribution Certificate.
Link the new certificate to the app's provisioning profile.
Make sure to select the correct provisioning profile for your app's target in Xcode.
While de3z1e's solution seems to work for most people, it did not work for me. What did work was creating an Apple Distribution cert when using XCode settings. While Xcode is open,
Go to preferences (Command + ,) -> Accounts -> Choose your team -> Manage certificates -> + (bottom left) -> Apple Distribution -> Re-archive + upload
I am not sure why the other solution did not work for me, but this did. I also have Xcode manual signing on and left it on.
For Distribution:
If you upload to Test Flight you need an Apple Store provisioning Profile.
If you are distributing to specific devices, you need Ad hoc provisioning profile.
You assign it in visual studio through Manual Provisioning, choosing an Apple Distribution Identity, and choosing your provisioning profile manualy - nothing in automatic.
If you like me could not find your newly created provisioning profile to appear in visual studio, make sure the bundile indetifier in info.plist is the same as used in the provisioning profile.
If you are white-labeling as per xam-girls blog, other copies of info.plist is not looked at by visual studio iOS Bundle Signing
I faced same problem. I edited profiles, it works.
Click edit button all provisioning profiles and save it. Download and use edited profiles. App will upload to store.

Adding provisioning profiles manually in xcode 5

In XCode 4, when I downloaded the provisioning profiles from my developer account and double clicked on the provisioning profile, XCode opened and added the provisioning profile to the list of the valid profiles, but in XCode 5, it seems that the provisioning profile menu has been moved under preferences -> accounts.
So how can we add them manually with double click on them?
As normal you can just double click. Once you have double clicked it will open up the iPhone Configuration Utility app and ask if you want Add to Library when you click Add to Library if you already have a provisioning profile with that name you will asked if you want to replace it just click Replace Provisioning Profile and you're done the new profile will appear in xcode.
If this isn't installed by default you can find the iPhone Configuration Utility App here - Thanks to #Dan for letting me know this link now is giving a 404
So here is a link to the Apple Configurator that I believe has replaced the iPhone Configuration Utility App
Add to Library
Replace provisioning profile
check out this update apple document for your question. I am sorry if you already figured it out ! https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingProfiles/MaintainingProfiles.html

Resources