67

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!

bobobobo
  • 64,917
  • 62
  • 258
  • 363
rob1302
  • 1,631
  • 3
  • 15
  • 18
  • 1
    check this link:http://stackoverflow.com/a/922830/845115 – Mudit Bajpai Feb 15 '12 at 04:33
  • I am having this same problem, but only with old projects. New projects do not give this warning. My provisioning profile has recently been renewed, so is NOT about to expire. Is there somewhere buried in the project or target settings that needs to be changed? These projects were 3.x, so that may be a clue. Thanks for any help –  Feb 29 '12 at 22:57

9 Answers9

120

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.

Simon East
  • 2,516
  • 2
  • 18
  • 21
  • 1
    It is weird. I had several profiles already expired, but none about to expire (all valid ones expire in 2013). Deleted the expired ones and now the warning is gone. – Nicolas Miari Jul 06 '12 at 08:23
  • See the updated answer from TheEye, this has changed in Xcode 5+, now it's not managed through Organizer any more. – Bek Jun 12 '14 at 19:00
  • 1
    It is not working anymore for Xcode 6, you can see [a new answer](http://stackoverflow.com/questions/9287087/xcode-build-warning-target-integrity-provisioning-profile-is-expiring-only-f/30272020#30272020) – Bartłomiej Semańczyk May 16 '15 at 05:06
37

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

TheEye
  • 9,280
  • 2
  • 42
  • 58
  • 3
    I had to go into my Apple Developer Portal > Provisioning Profiles > Edit > [deleted all invalid and expired] > then went and refreshed my Team Details like above. This removed the errors. – Louie Jul 17 '14 at 02:12
  • This worked for me using Xcode 6.2 after regenerating an *invalid* profile that was also expiring. – Mike May 20 '15 at 15:57
18

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

Makoto Setoh
  • 181
  • 3
11

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

Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
  • Thanks! Similar to @TheEye's answer, but clearer (for me): +1 – Peter K. Jun 02 '15 at 18:32
  • At Step 6, how to choose the warning-causing profile? The profile's name has nothing similar to the file name. So I deleted all of them, then download profiles of my account, and import profiles of which I don't have account. And I solved it. – DawnSong Nov 04 '15 at 02:46
7

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

Inder Kumar Rathore
  • 39,458
  • 17
  • 135
  • 184
4

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.

Nikola Kirev
  • 3,152
  • 3
  • 22
  • 30
2

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

Daniel
  • 23,129
  • 12
  • 109
  • 154
Joel
  • 2,285
  • 2
  • 21
  • 22
2

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.

leolmq
  • 211
  • 2
  • 6
1

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.

nickdnk
  • 4,010
  • 4
  • 24
  • 43