2016-09-06 30 views
3

每當我試着將我的文件,我得到這個錯誤信息:如何在Xcode源代碼管理中使用GPG簽名?

gpg: cannot open `/dev/tty': Device not configured
error: gpg failed to sign the data
fatal: failed to write commit object

哎呀!這是因爲我爲git啓用了GPG簽名。

是否可以在Xcode存儲庫中使用GPG簽名?

這不是一個大問題,因爲它很容易禁用GPG簽名(git config commit.gpgsign true),但它是一個相當不錯的標識。

+0

我想知道是否可以在提交後添加GPG簽名*然後在Xcode提交之後可能會添加一些鉤子來添加簽名? – towerofnix

回答

1

Is it possible to use GPG signatures with Xcode repositories?

不,Xcode不支持這個。

但是,「Xcode存儲庫」只是一個正常的git存儲庫。如果您確實想要使用GPG簽名,請在命令提示符下執行所有提交,合併等操作。