Provisioning profile error

It is always the error I get when I don't use the XCode after a while.


I check I should have the active provisioning profile in the keychain.


I am building the app for ad hoc development.


Why the error still exists?


--------------------------

Compile error screen in XCode:


XXX requires a provisioning profile. Select a provisioning profile for the "Debug" build configuration in the project editor.

Code signing is required for product type 'Application' in SDK 'iOS 10.2'

XXX requires a provisioning profile. Select a provisioning profile for the "Debug" build configuration in the project editor.

Code signing is required for product type 'Application' in SDK 'iOS 10.2'


---------------------------

Distribution Certificate in Keychain:


iPhone Distribution: Andrew (XXXXXXXXXXX)

Issued by Apple Worldwide Developer Relations Certification Authority

Expires: Wed, 7 March 2018

* This certificate is valid

How long is "a while"...?


Which version Xcode are you using?

Provisioning profile error
 
 
Q