Related
I need to archive my app for submission to iTunes Connect.
It was OK with Xcode 8.3.3:
It's NOT OK with Xcode 9.0:
When archiving, I get:
Code Signing Error: Provisioning profile "XC iOS: *" is Xcode managed, but signing settings require a manually managed profile.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.0'
The two screenshots are taken from the same computer, same workspace.
I can't use "Automatic" because it would change the provisioning profile to a different one, then after uploading to iTunes Connect I would get:
Potential Loss of Keychain Access - The previous version of software has an application-identifier value of ['YBDK7H6MLG.com.ef.english24-7'] and the new version of software being submitted has an application-identifier of ['GEEM4BQ58H.com.ef.english24-7']. This will result in a loss of keychain access.
How do I make a release targeting iOS 11 without losing keychain access?
Thanks to all for helping.
Xcode 9 does not accept Xcode-generated Provisioning Profile (with "XC iOS" in the name). So the solution is to clone the Xcode-generated Provisioning Profile in a new one with a different name.
Ask your Team Agent to make you "Admin" in the team in order to manage provisioning profiles
Create a new Provisioning Profile or Edit an existing one with:
Change the App ID to the one from Xcode:
Change the Certificate to the correct one (not necessarily the latest):
Click Generate
Click Download
Double-click it on your computer
Select it for your signing:
Archive
When exporting, check that your application-identifier and keychain-access-groups are correct:
Xcode 9 insists that the profile is "Xcode generated and doesn't support manual signing" simply because the profile has "XC" in its name.
The key fix here is to rename the profile to a name without "XC" in it.
After renaming the quickest way to use it is: choose your target > General > Signing (scheme name) > select Download Profile..., there select the newly renamed one.
Repeat for all targets where needed. Done.
I know this is simple, but I've read through all the questions and there doesn't seem to be a simple answer to this.
I've created an appID. I've created a mobileprovision file, downloaded it and double clicked it and that all seems fine. (I have xcode 6)
I wan't to select my distribution profile in Code Signing Identity in the build. But all my certificates are grayed out:
(No cretificate found)[check profile]. - check profile is the name of my mobileprovision file.
How do I get this profile though to show up in XCode? and where would it show up?
Full description is here:
Set the project level code signing build settings to their defaults:
Navigate to the Project > Build Settings tab.
Set the Provisioning Profile build setting to Automatic for all build configurations.
Set the Code Signing Identity build setting:
Set to iOS Developer for all build configurations in iOS projects.
Set to Mac Developer or Developer ID, as appropriate, for all build configurations in OS X projects.
https://developer.apple.com/library/mac/qa/qa1814/_index.html
I've struggling with this for hours. I have 2 same provisioning profiles I've created and the new profile didn't substitute the old one (which expires 6 days earlier than the new one). Through the XCode 5 menu I can't seem to delete the duplicate provisioning profile. Any workaround in this situation?
If you delete the profile from the Apple development a/c and hit refresh in XCode (Using xcode>Preferences>Accounts) then these profiles will be gone.
You can remove them from the this directory on your machine:
"~/Library/MobileDevice/Provisioning\ Profiles"
In the Xcode Preferences, go to Accounts, then go to your apple ID, then click "View Details"
Click the provisioning profile which you would like to delete, then press the "delete" key ONCE. Then click the refresh icon for manually update the list(pretty counterintuitive...).
Using this method I was able to delete all but one copy of the same provisioning profile, after which the delete does nothing.
You probably don't need to delete the duplicate profiles. Just go to
Xcode / Preferences / Accounts / / View Details
and hit the refresh button.
I did this and my duplicate provisioning profiles disappeared. Now when I post builds to TestFlight the distribution lists are all correct.
In the Xcode Preferences--> Accounts, delete your account, add account again,click on your developer ID, press refresh, select provisioning profile again under build settings.
THATS IT. ALL YOUR PROBLEMS ARE SOLVED
I am using "iPhone configuration utility for Mac OS x" provided by apple for managing my all provisioning profiles for Xcode 5.
From apple's website:
iPhone Configuration Utility lets you easily create, maintain, encrypt, and install configuration profiles, track and install provisioning profiles and authorized applications, and capture device information including console logs.
You can download it from here
You can delete the provisioning profile:
Open the utility and select the provisioning profile from the list.
From the top menu select "Edit" than "Delete"
To remove any reference to an unwanted provisioning profile from XCODE 5 here is what I did:
1) Browse into the YOURAPP.xcodeproj directory
2) With vi I opened up the project.pbxproj file
3) Find PROVISIONING_PROFILE="ID_OF_THE_PROV_PROFILE_YOU_WANT_TO_DELETE"
In every instance I saw this in the file I just set it to "" and XCODE never gave me an error again.
All of the methods mentioned so far will still fail to delete certain "Managed by Xcode" profiles, which you may find will continually re-appear no matter what you do to delete them.
The problem seems to be that certain profiles are auto-generated by Xcode/Apple Developer Centre based on the App Ids you have. In my case I see one "Developer" profile per app ID (including the wildcard).
I would imagine that the only way to get rid of these is to remove the App Id itself through the Dev Centre. Often this is not possible since the Dev Centre will complain that the app "...exists in the App Store so it cannot be removed" - even when the app in question is not actually in the store.
None of the previous suggestions worked for me. What did finally eliminate the unwanted profiles was the following:
Remove the developer account from Xcode > Accounts
Quit Xcode.
Delete the unwanted provisioning profiles in the developer portal.
Delete all the files ~/Library/Developer/Xcode/DeveloperPortal*.*
Empty the trash.
Restart Xcode and add the developer account back in.
I was thrashing around so this might not be quite the magic formula but something along those lines. By design, Xcode automatically creates provisioning profiles based on the app identifiers set up in the developer portal with names like "Mac Team Provisioning Profile: ". This is a great feature but it adds to the confusion with this deletion issue.
From my experimentation i believe that Xcode pulls the provisioning profiles straight from the dev center.
i say this because i created a new provisioning profile from the dev center and it appeared in Settings > Accounts before i double-clicked the .mobileprovision file.
So basically, delete the profiles from developer.apple.com
In my case this worked:
Right click on a provisioning profile in the accounts tab -> view details panel.
Click the option show in finder -> delete them directly in finder.
For all the people who are seeing the profiles magically reappear after deleting them and hitting refresh, simply wait a few minutes after deleting and before hitting the refresh button.
For deleting provisioning profile we can use iPhone Configuration Utility software.
iPhone Configuration Utility Software -> Install this software -> Open Software -> Provisioning Profiles -> find list of your all profile -> Press Backspace button, it will ask to delete provisioning profile ->Click on delete provisioning profile button. So it will remove it from your existing Xcode application and even from your PC.
I've figured out that it takes some time interval to sync between local path of the provisioning(~/Library/Developer/Xcode/DeveloperPortal) and the iTunesConnect server. So once you have deleted your provisioning profile on the local path and on the iTunesConnect server (you should remove both for clearing), you need to wait at least 5 minutes, otherwise you will see the files you've deleted again on the local path when you try to press 'fix it' button in Xcode.
Everything is OK on Xcode4.6. When I try to use Xcode5 dp6 to run app on devices. I got an error of "No matching provisioning profiles found issue". How can I resolve this issue?
Don't forget to change profile in Provision Profile sections:
Ideally you should see Automatic in Code Signing Identity after you choose provision profile you need. If you don't see any option that's mean you don't have private key for current provision profile.
What really confused me was that there are two different sets of build settings:
1) for the Project
2) for the Target
In the sidebar (top left) there is a blue icon that represents your project. Click that:
Then in the main panel to the right, in the top bar, just to the left of the word, "General," there is a small icon of your Project. Click that, and now select the Target in the pop-up menu that appears:
Once you've selected the Target, now the build settings for the target can be changed. They are different than the ones for the Project itself... weird! I'm not sure why there are build settings for the Project as a whole, that are different from the Target, since the Target's settings are what gets used during building. So why even have settings for the Project? Not sure.
But that's how you change them. This solved the issue for me: go into the Target (not the Project!) under Code Signing > Provisioning Profile > and change the settings to the proper profile. For a long time I was just changing them in the Project only, since I didn't know I was supposed to select the Target, and I kept having this issue. This fixes it!
Setting your provisioning profile moved. It confounded me for a while until I found it also.
Select your project file (to open target)
Click on the "Build Settings" tab
Scroll down to "Code Signing" and see the new "Provisioning Profile" section there.
OK - all answers provided above are correct to some extend, but did not resolve this issue for me. I'm using Xcode5.
There are lots of threads around this general error but from what I read this is a bug in Xcode dating back to 3.x versions that can randomly create conflicts with your Keychain.
I was able to resolve this by doing the following:
Open Xcode -> preferences -> Accounts: delete your developer account
Open Keychain: Select Keys, delete all iOS keys; Select My Certificates, delete all iPhone certificates
Navigate to '/Users//Library/MobileDevice/Provisioning Profiles', delete all files (this is where Xcode stores mobile profiles)
Open Xcode -> preferences -> Accounts: re-add your developer account
Navigate to Project properties, Target, General Tab and you should see the following
Click 'Revoke and Request' (I tried this, it may take a few min) or 'Import Developer Profile' (or download from Apple developer portal and import this way, should be faster..)
FINALLY: you can go over to Build Settings and set 'Provisioning Profile' and 'Signing Settings' as described by everyone here..
Doing this and only this resolved this error for me.
Here's a simpler solution that worked for me:
In XCode5, double-click on your app's target. This brings up the Info pane for the target. In the "Build Settings" section, check the "code signing" section for any old profiles and replace with the correct one. update the value of "code signing identity" and "provisioning profile"
Sometimes, especially after generating a new certificate or starting to use a new code signing identity, there seems to be no other way to fix this, other than doing some cleaning the .pbxproj file. This is probably a bug that will be fixed, so if you are reading this long after this post, maybe you should try some other solution.
There is an excellent post about this in the pixeldock blog:
http://www.pixeldock.com/blog/code-sign-error-provisioning-profile-cant-be-found/
In short, mostly quoting from that article, you need to:
Make sure you have fetched all your remote iTunes Connect certificates in xcode5 from Preferences, Accounts, (select your account), View Details, press refresh button. (Normally, I answer no when xcode asks if I want to create certficate signing requests, it's not necessary when you only want to download/refresh your certificates)
Close Xcode
Right click on your project’s .xcodeproj bundle to show it’s contents.
Open the .pbxproj file in a text editor of your choice (make a backup copy first if you feel paranoid)
Find all lines in that file that include the word PROVISIONING_PROFILE and delete them.
Open Xcode
Enter your target and select the provisioning profile that you want to use.
Build your project
Good luck!
In xcode5 from Preferences, Accounts, (select your account), View Details, press refresh button. then select Provision Profile in build settings.
In my case the "Fix Issue" button triggers a spinner for about 20 seconds and fixes nothing.
This works for me (iOS 7 iPhone 5, Xcode 5):
Xcode > Window > Organizer > Devices
Find the connected device(with a green dot) on the left pane.
Select "Provisioning Profiles"
On the right pane, there is a line with warning.
Delete this line.
Now go back to click the "Fix Issue" button and everything is fine - the app runs in the device as expected.
I have 2 targets in my project, Free and Paid.
My mistake was i was looking at my free target while trying to build the paid target, a stupid mistake but possible someone out there might learn from this as well.
I get the same question as you you can click here :
About the question in xcode5 "no matching provisioning profiles found"
(About xcode5 的no matching provisioning profiles found )
When I was fitting with iOS7,I get the warning like this:no matching provisioning profiles found.
the reason may be that your project is in other group.
Do like this:find the file named *.xcodeproj in your protect,show the content of it.
You will see three files:
project.pbxproj
project.xcworkspace
xcuserdata
open the first, search the uuid and delete the row.
All of drop down lists disappeared in Build Settings after running the Fix Issue in Xcode 5. Spent several days trying to figure out what was wrong with my provisioning profiles and code signing. Found a link Xcode 4 missing drop down lists in Build Settings and sure enough I needed to re-enabled "Show Values" under the Editor menu. Hopefully this helps anyone else in this predicament.
Also, I had to clear my derived data, clean the solution and quit and reopen Xcode into for the code signing identities to correctly appear. My distribution provisioning profiles where showing up as signed by my developer certificate which was incorrect.
I had the same error today, with XCode 6.1
What I found was that, no matter what I tried, I couldn't get XCode to stop complaining about this Provisioning Profile with a GUID as its name.
The solution was to search for this GUID in the .pbxproj file, which lives within the XCode .xcodeproj folder.
Just find the line containing your GUID:
PROVISIONING_PROFILE = "A9234343-.....34"
and change it to:
PROVISIONING_PROFILE = ""
One other thing to check: Your XCode PROJECT settings contain your Provisioning Profile & Code Signing settings, but, there is a second set under your project's "TARGETS" tab.
So, if XCode is complaining about a Provisioning Profile which isn't the one quoted in your project settings, then go have have a look at the settings shown under "TARGETS" in your XCode project.
(I wish someone had given me this advice, 4 painful hours ago..)
All my apps that i've created so far do this. It does nothing to the app or being able to run it but it's just annoying always having that 1 warning.
I'm Using
Xcode 4.2
OSX 10.7.3
This is the actual warning:
-Target Integrity
Provisioning profile is expiring
Here's an image of it just so I don't have to try and explain. (Edited it and put 'Project' where my actual project name was for privacy)
Thanks for any help!
I had the same issue.
Worked out in the end it was Xcode warning about some expired profiles generally - not ones specifically linked to the current project.
To fix I went to Organizer/ Devices Tab and under Library select Provisioning Profiles
I had two profiles in the list that had expired - I didn't need them so I just right clicked and deleted them.
Warning then went away.
This is a bit different with Xcode 5 now when working with Teams ...
I go the same warning of an expiring old profile which didn't exist anymore - but it still did exist in the local Account setting for the connected team in Xcode (Xcode -> Preferences -> Accounts -> <team account in question> -> View Details). So I just did a refresh on these profiles, and yes, the warning was gone.
Unfortunately there are many more expired profiles for other apps in this team account which I just synched into my local Account setting (and I can't just remove them, as it's a client's account ..) - and now Xcode complains about all of them being expired. Guess you should be happy with what you got sometimes, it can get worse ...
I got the same warning on my old project today.
I tried this, and the warning went away.
At 'Build Settings' -> 'Code Signing Identity', Choose 'Automatic Profile selector'.
For Xcode 6 you need to:
go to the Preferences (Cmd + ,)
Accounts
choose your account
choose your team
Click view details
Choose provisioning profile from warning
right click (show in Finder)
remove from Finder
Now the warning should disappear or you will need to repeat above steps for another warning
I deleted all the provisioning profile from
cd ~/Library/MobileDevice/Provisioning\ Profiles/
and it's gone.
You can use this shell script the get the names of the provisioning profiles
It is a warning that your provisioning profile is about to expire and you should renew it.
You can do this at Apple's developer center website. If your developer profile program is also about to expire, you should renew it too.
I had to also restart Xcode after deleting the old profiles to get the warnings to go away.
I have the similar problem, Xcode say one provisioning profile is expiring.
Then I go to the developer.apple.com to delete the expiring provisioning profile, it fixed.
Hope can help you.
I had this problem because a provisioning profile I used was signed with a certificate that was revoked/expired. First, go to the member center and delete expired and invalid provisioning profiles. Regenerate the ones you need. To clean up Xcode, go to Preferences-> Accounts, select your account.
Click view details.
Right click any profile -> Show in finder. Delete all of them. Then go back to XCode, close details and reopen (to refresh) and re-download the ones you need (there'll be a download button for each profile).
Warning gone. Xcode might complain about code signing issues, but clicking "Resolve" automatically clears this up.
Then everything worked.