我正试图在设备上运行。我刚刚从开发者会员中心下载了我的证书。我已将它添加到我的钥匙链中。我已经通过工具包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
答案 0 :(得分:2)
Trigger Toolkit中标题为Certificate
的输入区域应仅包含证书名称,而不是路径。现在您的证书名称设置为iPhone Developer
。确保这反映了会员中心的证书名称。还要确保使用适当类型的证书 - 开发与分发。
标题为Provisioning Profile
的触发器工具包中的输入区域应包含一个路径 - 指向您的配置文件的路径,该路径也应该是上面适当的类型。
此外,除了工具包用户界面之外,我还要确保您的local_config.json
反映了正确的路径。
如果这不起作用,包括你的local._config.json可能会解决这个问题。
答案 1 :(得分:0)
我在apple成员网站上手动重新生成了我的证书和配置文件,并再次完成了所有操作。