Codesign error: Provisioning profile cannot be found after deleting expired profile
Sometimes your Xcode project file gets messed up, especially if you have an old project and first created it with an older version of Xcode/iPhone SDK.
What you need to do is open up the project file in a text editor, search for the 'long string' from your error and manually erase that line.
In fact, you should just go ahead and erase any line that points to any provisioning profiles. Then reopen the project in Xcode, go to the settings and reselect your new profile. This clears up issues like that most of the time.
The lines that point to the provisioning profiles will look like this:
PROVISIONING_PROFILE = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";
Code Sign error: Provisioning profile can't be found
what exactly is the error message?
Did you add your device including the required provisioning profile in the organizer? What do you see in the organizer when selecting your iPhone under devices? It should be there with the correct valid profile...
No non-expired provisioning profiles were found
Based on the discussion.
Importing the developer account from the working machine resolved the issue:
https://developer.apple.com/library/ios/recipes/xcode_help-accounts_preferences/articles/export_signing_assets.html
Code Sign error: No unexpired provisioning profiles found that contain any of the keychain's signing certificates
After nine hours of hair pulling, cursing and burying my head in my hands... All I had to do was create a new project, transfer the files over by hand, and the error went away. Argh.
Update: My marking my own answer as correct does not mean these other answers were wrong - I didn't get a chance to try any of them.
Xcode 8 shows error that provisioning profile doesn't include signing certificate
To fix this,
I just enable the "Automatic manage signing" at project settings general tab, Before enabling that i was afraid that it may have some side effects but once i enable that works for me.
Hope this helps for others!
Xcode 10: A valid provisioning profile for this executable was not found
I was struggling with this today, it was super frustrating. For now, just go into "File"
> "Project Settings..."
(or in some cases "Workspace Settings..."
) and then select "Legacy Build System"
from the "Build System"
dropdown.
Xcode - Non matching & non expired provisioning profiles found - free dev account
For all of the posts I've seen, I'm sure this will help someone out there.
Go to project build settings > code signing > code signing identity
check that the provisioning profile you've made is set.
after I did this, I was still receiving an error. this time for entitlements. I browsed to project > capabilities > health kit (where the issue was) and found a 'fix issue' button. This solved the second half of the problem. good luck out there
Related Topics
Nsurlconnection and Basic Http Authentication in Ios
How to Create Launch Images For Iphone 6/6 Plus Landscape Only Apps
Uiscrollview Pauses Nstimer Until Scrolling Finishes
Uiwebview: Html5 Audio Pauses in iOS 6 When App Enters Background
Nsurlsession With Nsblockoperation and Queues
Navigation Bar With Uiimage For Title
Xcode, Where to Assign the Segue Identifier
What Are Sprite Kit'S "Category Mask" and "Collision Mask"
Uibutton Inside a View That Has a Uitapgesturerecognizer
How to Create a Guid/Uuid Using Ios
Getting a List of Files in a Directory With a Glob
Uisplitviewcontroller in Portrait on Iphone Shows Detail Vc Instead of Master
How to Play a Local Video With Swift
Xcode 6 Beta 2 Issue Exporting .Ipa: "Your Account Already Has a Valid iOS Distribution Certificate"
How to Make Outlet Connection to a Constraint in Ib