Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 778
rob1302 Avatar asked Feb 15 '12 02:02

rob1302


9 Answers

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.

like image 106
Simon East Avatar answered Oct 22 '22 18:10

Simon East


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

like image 41
TheEye Avatar answered Oct 22 '22 16:10

TheEye


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

like image 23
Makoto Setoh Avatar answered Oct 22 '22 17:10

Makoto Setoh


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

like image 26
Bartłomiej Semańczyk Avatar answered Oct 22 '22 18:10

Bartłomiej Semańczyk


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

like image 40
Inder Kumar Rathore Avatar answered Oct 22 '22 17:10

Inder Kumar Rathore


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.

like image 29
Nikola Kirev Avatar answered Oct 22 '22 18:10

Nikola Kirev


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

like image 42
Joel Avatar answered Oct 22 '22 18:10

Joel


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.

like image 32
leolmq Avatar answered Oct 22 '22 16:10

leolmq


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.

like image 44
nickdnk Avatar answered Oct 22 '22 18:10

nickdnk