Swift项目的代码签名问题 [英] Code Sign Issue with Swift project

查看:132
本文介绍了Swift项目的代码签名问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了.p12证书和配置文件。
当我运行在Objective -C中创建的项目时,它在我的iOS设备(版本7.1)
中运行完全正常但是当我运行在Swift中创建的Project时,它会抛出一个代码符号错误:

I have .p12 certificate installed and a provisioning profile. When i Run the Project Created in Objective -C , it runs perfectly fine in my iOS Device(ver 7.1) but when I run Project created in Swift it throws me an Code sign error as:


无法编码/ Users / sulabh / Library / Developer / Xcode / DerivedData / FacebookTutorial -fcrwkfacnatqsfcowdihbdhybvhz / Build / Products / Debug-iphoneos / FacebookTutorial .app / Frameworks / libswiftCore.dylib:代码签名失败,退出代码为1
命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool失败,退出代码1

Couldn't codesign /Users/sulabh/Library/Developer/Xcode/DerivedData/FacebookTutorial-fcrwkfacnatqsfcowdihbdhybvhz/Build/Products/Debug-iphoneos/FacebookTutorial.app/Frameworks/libswiftCore.dylib: codesign failed with exit code 1 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 1

我尝试重新安装xcode,并从钥匙串中删除证书,更改Build设置。但没有什么适用于Swift项目。
有什么问题,如何解决?

I have tried reinstalling xcode, and removing certificate from keychain, changing Build setting. but nothing works for Swift project. What is the issue and how could I resolve it?

推荐答案

您需要从以下位置重新生成配置文件Apple开发者中心。据我所知,他们为个人资料添加了一些新内容,这会导致问题。

You need to re-generate your provisioning profile from Apple Developer Center. As far as I know they add something new to profiles and that causes the problem.

这篇关于Swift项目的代码签名问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆