问题描述
在手机上运行程序,出现”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。
原因
当你真机测试时Xcode在debug下创建了一个PP(简介文件),[发布的时候也会创建了一个PP]真机运行的时候,是debug状态,就不能用发布时创建的PP文件,只能重新下载你debug状态下的PP文件。简单的说,发布到app store上的PP文件和debug状态下的PP文件是两个文件。
解决方法
- 方法一:
到development.apple.com网站
打开下载下来的PP文件,双击(安装到xcode中),运行程序,successed。
- 方法二:(更快捷,测试成功)
首先:到偏好设置中将自己真机测试的AppleID删掉
其次:哎~就是在加入你的AppleID
最后:将这次的PP导出,以备后用。
参考官方文件:
https://developer.apple.com/library/ios/recipes/xcode_help-accounts_preferences/articles/export_signing_assets.html