美文网首页
通过Ssh连接苹果系统打包出现Codesign Error

通过Ssh连接苹果系统打包出现Codesign Error

作者: 小发条 | 来源:发表于2017-03-23 16:16 被阅读0次

title: 通过Ssh连接苹果系统打包出现Codesign Error
date: 2017-02-22
tags:

  • Jenkins
  • 软件测试
  • 持续集成
  • Ios
    categories: 持续集成
    keywords: ios jenkins fastlane 持续集成

背景

最近再弄Ios打包的持续集成,计划用Jenkins + Fastlane + Macos,在调试过程中遇到一个问题,直接在Mac mini上打包的时候能够正常完成, 而把Mac mini当做Jenkins的一个Slave节点的时候,会遇到以下错误:

SecKey API returned: -25308, (null)____FILE_PATH____: unknown error -1=ffffffffffffffff

分析原因为xcodebuild的权限问题,那么具体的解决方案如下:

security set-key-partition-list -S apple: -k <Password> -D <Identity> -t private

具体的可以参考老外的脚本:
https://gist.github.com/sinofool/39dc371e95c799094f7b#file-cmdbuild-sh-L97-L98

原文地址:http://fatiao.site/ios_codesign_error.html

相关文章

网友评论

      本文标题:通过Ssh连接苹果系统打包出现Codesign Error

      本文链接:https://www.haomeiwen.com/subject/trktottx.html