代码签名错误,iOS9

Code Signing error,iOS9

我真的厌倦了这个。我已尽一切可能解决此问题。但没有获得成功。我的 SWIFT 代码在模拟器上运行良好。但是当我尝试在设备上 运行 它或尝试制作一个存档时,我得到了这个编译错误

 Couldn't codesign /Users/SandeepHoney/Library/Developer/Xcode/DerivedData/SocialCircle-advannpwpzlrtleupycqgmvugcst/Build/Products/Debug-iphoneos/SocialCircle.app/Frameworks/libswiftCoreLocation.dylib: codesign failed with exit code 1

我已尝试重新生成配置文件。但那东西甚至不起作用。我关注了this。但不工作.. 不知道我哪里做错了。

问题是因为 Apple WWDRCAFeb 14, 2016 过期。

解决这个问题

  • 转到您的 Keychain Access,然后在菜单中

  • 单击查看 - - > 显示过期证书

delete the expired Apple Worldwide Developer Relations Certificate Authority from both the login and System Keychains.

  • 系统下你可以看到你的证书好像过期了

  • 通过 downloading 安装 Apple 更新的证书并双击它。

  • 重启你的xcode

  • 清理你的项目构建