You third iOS app,解决1The identity used to sign the executable is no longer valid 2.A valid provisioning profile for this executable was not found。

进行苹果官方文档you third ios app 学习中,需要真机进行调试,之前已经申请开发者帐号,速度很快,进行真机测试,前两天一直挺好,先是出现

The identity used to sign the executable is no longer valid,

Please verify that your device‘s clock is properly set, and that your signing certificate is not expired。发现开发者中心的pp证书状态为可用,但是Devices一行显示0.(解决后才发现没有绑定设备的原因。)然后选择Provisioning Profiles的ALL选项进行重新创建,然后更新了Xcode中的两处code signing的选项。紧接着第二个问题出现了。A valid provisioning profile for this executable was not found,自己总结如下。

1.查看苹果开发者中心的pp文件是否可用状态。如果valid那么就需要重新创建了。

2.重新创建pp证书,不要选择ALL,因为按此步骤选择,设备选择项会被跳过。选择development如下图1,创建成功后看详细信息设备一栏中是否有一个设备信息,如果没有需要重新创建。文件显示的Name要和Xcode中的project和tearts中的code signing中的pp 选择一致。图2

图1

图2

原文地址:https://www.cnblogs.com/liqiwa/p/5305914.html