小编Jen*_*sen的帖子

如何使用Xcode 6.0.1为OS X Server 3.2.1添加证书

在我升级了Xcode(到6.0.1)和OS X Server(到3.2.1)后,我无法弄清楚如何为配置文件添加证书,以便Xcode机器人可以找到它们.

我已成功添加配置文件,方法是将.mobileprovision文件复制到 /Library/Developer/XcodeServer/ProvisioningProfiles

但是我现在在日志中得到的错误是:

CodeSign /Library/Developer/XcodeServer/Integrations/Caches/017d83d8975db54bc8279c2fcc0304a6/DerivedData/Build/Products/Server\ build-iphoneos/Test.app
    cd /Library/Developer/XcodeServer/Integrations/Caches/017d83d8975db54bc8279c2fcc0304a6/Source/TEST
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "iPhone Distribution: Greener Pastures ApS"
Provisioning Profile: "Greener Pastures Enterprise TEST"
                      (03F7CD73-FB25-422E-22A4-A80F12041005)

    /usr/bin/codesign --force --sign 746ADC85C62D54BEC9FA874A8D777A38D4DB95CA --keychain /Library/Developer/XcodeServer/Keychains/Portal.keychain --resource-rules=/Library/Developer/XcodeServer/Integrations/Caches/017d83d8975db54bc8279c2fcc0304a6/DerivedData/Build/Products/Server\ build-iphoneos/Fnug.app/ResourceRules.plist --entitlements /Library/Developer/XcodeServer/Integrations/Caches/017d83d8975db54bc8279c2fcc0304a6/DerivedData/Build/Intermediates/Fnug.build/Server\ build-iphoneos/Fnug.build/Fnug.app.xcent /Library/Developer/XcodeServer/Integrations/Caches/017d83d8975db54bc8279c2fcc0304a6/DerivedData/Build/Products/Server\ build-iphoneos/Fnug.app

746ADC85C62D54BEC9FA874A8D777A38D4DB95CA: no identity found
Command /usr/bin/codesign failed with exit code 1
Run Code Online (Sandbox Code Playgroud)

其外观如下:"我找不到指定配置文件的证书".

看起来证书应该在文件中/Library/Developer/XcodeServer/Keychains/Portal.keychain- 遗憾的是我无法编辑.

我已经尝试过使用将证书添加到文件中

sudo security import "/Users/administrator/Desktop/Greener Pastures Enterprise Distribution TEST Certificate.p12" -k /Library/Developer/XcodeServer/Keychains/Portal.keychain -A -T /usr/bin/codesign -T /usr/bin/xcodebuild -T /usr/bin/pkgbuild
Run Code Online (Sandbox Code Playgroud)

但这促使我提供"钥匙串密码".我没有(不,它不是管理员帐户的密码或证书密码).

有谁知道如何解决这一问题?

osx-server xcode6

10
推荐指数
2
解决办法
9083
查看次数

标签 统计

osx-server ×1

xcode6 ×1