Xcode build warning - Target Integrity - Provisioning profile is expiring only for the ProjectnameTests Target

XcodeBuildWarnings

Xcode Problem Overview


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)

enter image description here

Thanks for any help!

Xcode Solutions


Solution 1 - Xcode

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.

Solution 2 - Xcode

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 ...

Solution 3 - Xcode

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'.

Solution 4 - Xcode

For Xcode 6 you need to:

  1. go to the Preferences (Cmd + ,)
  2. Accounts
  3. choose your account
  4. choose your team
  5. Click view details
  6. Choose provisioning profile from warning
  7. right click (show in Finder)
  8. remove from Finder

Now the warning should disappear or you will need to repeat above steps for another warning

Solution 5 - Xcode

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

Solution 6 - Xcode

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.

Solution 7 - Xcode

I had to also restart Xcode after deleting the old profiles to get the warnings to go away.

Solution 8 - Xcode

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.

Solution 9 - Xcode

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionrob1302View Question on Stackoverflow
Solution 1 - XcodeSimon EastView Answer on Stackoverflow
Solution 2 - XcodeTheEyeView Answer on Stackoverflow
Solution 3 - XcodeMakoto SetohView Answer on Stackoverflow
Solution 4 - XcodeBartłomiej SemańczykView Answer on Stackoverflow
Solution 5 - XcodeInder Kumar RathoreView Answer on Stackoverflow
Solution 6 - XcodeNikola KirevView Answer on Stackoverflow
Solution 7 - XcodeJoelView Answer on Stackoverflow
Solution 8 - XcodeleolmqView Answer on Stackoverflow
Solution 9 - XcodenickdnkView Answer on Stackoverflow