Xcode 9.3 breaking my AdHoc provisioning profiles - ios

This has happened on 2 machines for me. My AdHoc(use for Hockey App) provisioning profiles were working fine until the last update. Now I get the:
Provisioning profile "HAAdHoc19" doesn't include signing certificate "xxxxxxxxxxxxxxx"
error when I select those profiles. I've removed the certs from my keychain, generated a new one, generated a new AdHoc profile(or 2) and still get the error. Any ideas?

Related

How to push an ipa app on AppStore [duplicate]

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

Team signing not working after opening project on a new mac in XCode

I just set up my project on a new mac, logged into my teams developer account and set up correct Provisioning profiles for debug and release, seems ok, I can see my team name, however under Signing Certificate / Status I am getting following error
Provisioning profile "match Development com.mySite.myApp"
doesn't include signing certificate "iPhone Developer: My Name
(CODE)".
Above one is for debug, second one for release says
Provisioning profile "match AppStore com.mySite.myApp" doesn't
include signing certificate "iPhone Distribution: My Company
(CODE)".
As I am new to iOS development, I might be missing a step or something of this sort related to adding signing on a new machine?
As a side note, certificates were generated by Fastlane Match.
In my case so many times I have to generated certificate from my mac then it resolved. or may be you can delete old certificate and provisioning profile and reinstalled it.
Go to the Keychain Access, and delete the development certificate that's related to the provisioning file.
Download the development certificate you just deleted locally, and double click to make sure it appears in the Keychain Access.
Download iPhone configuration utility app to delete old provisioning profile.
From Apple Member Center, download the development provisioning file you just deleted locally, double click the file to make sure it's appearing in XCode.
then reinstall them.

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

renewing provisioning profile and certificates

I have 2 iOS certificates - one for development and one for distribution (App Store). Both are expiring in 2 weeks. I am on Xcode 4.4.1. I have 2 development provisioning profiles and 4 distribution provisioning profiles.
In Xcode, I see that all of the provisioning profiles tied to the distribution certificate are set to expire in 2 weeks. I went into the Organizer->Provisioning Profiles and tried to Renew, but I received an error dialog indicating that "No value was provided for the parameter 'deviceids'". When I look on the Apple Provisioning Portal for that profile, it shows that the certificate is expiring in 2 weeks and that there are no devices associated with it (which is the way I've been doing it all along).
So - I'm trying to renew these, and haven't done this before. Has anyone seen a similar error in Xcode? Do I need to renew my certificate first, and if so, how? I don't see any "create new certifcate" button on the Provisioning Portal or in Xcode.
I had a similar problem after I recently renewed my certificate.
The following corrected the issues for my Development Provisioning Profile:
Click Refresh in Xcode Organizer.
Ensure the Code Signing build settings for your Project and Target are set to the proper Provisioning Profile. You should select iPhone Developer to avoid future issues.
Optionally, remove expired profiles from Device tab in Xcode Organizer.
The following corrected the issues for my Distribution Provisioning Profile:
Log in to your iOS Developer Portal
Go to the Distribution tab under Provisioning
Create a new distribution profile.
After the profile is generated, click Refresh in Xcode Organizer
OK - I think I've fixed this. Here is what I did and it seems to work - when I upload the next release I'll know for sure.
In X-Code, I deleted all of my provisioning profiles
I then quit out of X-Code
From the Development Portal, I revoked my developer and distribution certificates
I created new keys using the Key Chain application
Still in Key-Chain, I removed my old, soon to be expiring key/certificate
Back on the Development Portal, I created new certificates
Still on the Development Portal, I was able to edit all of my provisioning profiles and associate the correct new certificate to it
I downloaded the new profiles
I then followed this link's advice and worked around the apparent bug in X-Code to remove the old provisioning profiles from my project: Codesign error: Provisioning profile cannot be found after deleting expired profile
Started X-Code back up and copied the provisioning profiles into Organizer
Built for a device and tested OK.
Built for IOS Device as though I'm preparing to upload to the AppStore and build was successful. I haven't tried uploading to the store.
I actually did the steps twice, once for the development profiles and then once that worked/tested on my test devices, I modified the distribution profiles.
These set X-Code up w/ no warning and Organizer now shows all my valid provisioning profiles that won't expire for another year. Hopefully, next year, if I don't forget these steps, I'll be able to do it a bit more quickly.
An easier way of doing it is ...
My certificate had expired, so the renew button button in the Xcode Organizer did not work.
I did the following:
logged into the iOS provisioning portal
went to provisioning profiles > distribution
clicked on each of the expired profiles and clicked edit
the certificate radio button was unchecked because my certificate had expired, so I checked it and clicked generate
you'll then be prompted to download the newly generated profile.... dont!
wait about 5 minutes
go into the Xcode Organizer > provisioning profiles and click refresh
the profiles should then change from "expired" to "valid"

Updating a Code Signing Identity in Xcode 4.2

I am coding an iPhone app using Xcode 4.2.
My iPhone development provisioning profile expired. When I try to build and run my app on my iPhone, I get a message saying: Code Sign error: "Provisioning profile '(expired provisioning profile number)' can't be found"
I went to the iOS developer provisioning portal, renewed the provisioning profile, and downloaded it.
In Xcode I opened up the Organizer window. I deleted the expired provisioning profile, and added the renewed provisioning profile. (They both have the same name).
In my project Build Settings, under Code Signing Identity, I set the provisioning profile to the name that I want (which is the same as the expired profile name) and try to build, and I get the same error message, with the expired provisioning profile number. I can't find the renewed provisioning profile in the list that pops up when I click on the Code Signing Identity table cells in the Build Settings.
How do I set the Code Signing Identity to the Provisioning Profile that I want?
Try Clean all Targets and see if that helps.
The provisioning profile can be set for the "Project" and "Target" make sure you set them both.
Also delete all profiles and use automatic device provisioning in xcode to import profiles, which sounds like what you did.
Valid development profiles need to be installed on the device itself. I have not had one expire so I am not sure if putting it in the organizer will cause it to be copied across.
You can check in your phone menu SETTINGS>GENERAL>PROFILES. If it is still showing as expired then the updated one has not been copied across. To copy it across open iTunes on your computer and go to the apps screen for your device, then drag the provisioning profile into there. Once that is done resync your device and it should appear on your phone.

Resources