简体   繁体   English

Trigger.io无法指向证书。 / usr / bin / codesign:iPhone开发人员:找不到身份

[英]Trigger.io Can't point to certificate. /usr/bin/codesign: iPhone Developer: no identity found

I'm trying to run on the device. 我正试图在设备上运行。 I have just downloaded my certificate from the developers member center. 我刚刚从开发者会员中心下载了我的证书。 I've added it to my key chain. 我已将它添加到我的钥匙链中。 I've tried many possible certificate names through the toolkit UI. 我已经通过工具包UI尝试了许多可能的证书名称。 I've tried pointing the toolkit at the .cert file and trying many different cert names. 我已经尝试将工具包指向.cert文件并尝试许多不同的证书名称。 It when viewing the debug output it dosen't look like trigger even passes a cert path parameter to code sign. 它在查看调试输出时看起来不像触发器甚至将证书路径参数传递给代码符号。 What am I missing? 我错过了什么?

[DEBUG] Provisioning profile has valid wildcard application ID
[INFO] Plist OK
[INFO] 1 Provisioned Device(s):
[INFO] ['96fdb503d1deade5d1455288331543c3134577ef']
[DEBUG] Running: '/usr/bin/codesign' '--force' '--preserve-metadata' '--entitlements' '/var/folders/w1/3zw7h2xs0jbdw5_2f96q0v700000gn/T/tmp2AO4Hq' '--sign' 'Kev Zettler' '--resource-rules=/Users/kevzettler/checkiday-mobile/development/ios/device-ios.app/ResourceRules.plist' '/Users/kevzettler/checkiday-mobile/development/ios/device-ios.app'
[DEBUG] Kev Zettler: no identity found
[ERROR] Failed when running /usr/bin/codesign: Kev Zettler: no identity found
[DEBUG] Traceback (most recent call last):
  File "/Users/kevzettler/Library/Trigger Toolkit/build-tools/forge/async.py", line 106, in run
    result = self._target(*self._args, **self._kwargs)
  File "/Users/kevzettler/Library/Trigger Toolkit/trigger/api/app.py", line 312, in run
    forge_main.run(['--general.interactive', 'no'])
  File "/Users/kevzettler/Library/Trigger Toolkit/build-tools/forge/main.py", line 435, in run
    build_to_run=build_to_run,
  File "/Users/kevzettler/checkiday-mobile/.template/generate_dynamic/customer_goals.py", line 136, in run_app
    build_to_run.run()
  File "/Users/kevzettler/checkiday-mobile/.template/generate_dynamic/build.py", line 334, in run
    self._call_with_params(task_method, task_args)
  File "/Users/kevzettler/checkiday-mobile/.template/generate_dynamic/build.py", line 293, in _call_with_params
    return method(self, *params)
  File "/Users/kevzettler/checkiday-mobile/.template/generate_dynamic/ios_tasks.py", line 686, in run_ios
    certificate_password=certificate_password,
  File "/Users/kevzettler/checkiday-mobile/.template/generate_dynamic/ios_tasks.py", line 578, in run_idevice
    entitlements_file=temp_file_path,
  File "/Users/kevzettler/checkiday-mobile/.template/generate_dynamic/ios_tasks.py", line 354, in _sign_app
    path_to_app)
  File "/Users/kevzettler/checkiday-mobile/.template/generate_dynamic/module_dynamic/utils.py", line 346, in run_shell
    output=state.output.getvalue()
ShellError: Failed when running /usr/bin/codesign: Kev Zettler: no identity found

local_config.json local_config.json

{
    "general": {},
    "ios": {
        "profiles": {
            "DEFAULT": {
                "provisioning_profile": "/Users/kevzettler/Desktop/iOS_Team_Provisioning_Profile.mobileprovision",
                "developer_certificate": "Kev Zettler"
            }
        },
        "simulatorsdk": "7.0",
        "simulatorfamily": "iphone",
        "device": "device"
    },
    "android": {
        "profiles": {
            "DEFAULT": {}
        }
    }
}

Screenshots of certs http://imgur.com/a/xjNBz#0 证书的屏幕截图http://imgur.com/a/xjNBz#0

The input area in the Trigger Toolkit titled Certificate should only contain the certificate name, not a path. 标题为“ Certificate的Trigger Toolkit中的输入区域应仅包含证书名称,而不是路径。 Right now your certificate name is set to iPhone Developer . 现在您的证书名称设置为iPhone Developer Make sure this reflects the certificate name in the member center. 确保这反映了会员中心的证书名称。 Also make sure that you are using the appropriate type of certificate - development vs. distribution. 还要确保使用适当类型的证书 - 开发与分发。

The input area in the Trigger Toolkit titled Provisioning Profile should contain a path - one that points to your provisioning profile which should also be of the appropriate type as above. 标题为Provisioning Profile的Trigger Toolkit中的输入区域应包含一个路径 - 指向您的配置文件的路径,该路径也应该是上面适当的类型。

Additionally, I would make sure your local_config.json reflects the proper path in addition to the toolkit UI. 另外,除了工具包UI之外,我还要确保你的local_config.json反映了正确的路径。

If this doesn't work, including your local._config.json might shed some light on the issue. 如果这不起作用,包括你的local._config.json可能会解决这个问题。

我在apple成员站点上手动重新生成了我的证书和配置文件,并再次完成了所有操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM