0

我正在尝试在设备上运行。我刚刚从开发者会员中心下载了我的证书。我已将它添加到我的钥匙链中。我已经通过工具包 UI 尝试了许多可能的证书名称。我尝试将工具包指向 .cert 文件并尝试了许多不同的证书名称。在查看调试输出时,它看起来不像触发器,甚至将证书路径参数传递给代码签名。我错过了什么?

[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

{
    "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": {}
        }
    }
}

证书截图 http://imgur.com/a/xjNBz#0

4

2 回答 2

2

Trigger Toolkit 中标题为的输入区域Certificate应该只包含证书名称,而不是路径。现在您的证书名称设置为iPhone Developer. 确保这反映了会员中心的证书名称。还要确保您使用的是适当类型的证书 - 开发与分发。

标题为 Trigger Toolkit 的输入区域Provisioning Profile应包含一个路径 - 指向您的配置文件的路径,该配置文件也应为上述适当类型。

local_config.json此外,除了工具包 UI 之外,我会确保您反映正确的路径。

如果这不起作用,包括您的 local._config.json 可能会解决这个问题。

于 2013-10-16T18:36:36.597 回答
0

我在苹果会员网站上手动重新生成了我的证书和配置文件,并再次执行了所有操作,并且成功了。

于 2013-10-19T20:43:47.350 回答