无法安装DeviceAgent-在系统上找不到有效的iOSDeveloperIdentities

时间:2018-03-21 19:05:25

标签: ios ruby nsrunloop calabash-ios

xcrun xcodebuild -version :9.2

run_loop :2.6.4

calabash-ios版本:0.20.5

iOS版:11.2.6

命令 - /Users/testmaskin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.6.4/lib/run_loop/device_agent/bin/iOSDeviceManager install /Users/testmaskin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.6.4/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app --device-id 61b08575d55927c0dd0b9192e37a2c1f421cd000

输出:

Terminating app due to uncaught exception 'CBXException', 
reason: 'Unable to find appropriate codesign identity for device 61b08575d55927c0dd0b9192e37a2c1f421cd000 / app com.apple.test.DeviceAgent-Runner combo'

输出 tail -F ~/.calabash/iOSDeviceManager/logs/current.log

2018-03-20 16:46:04.676 INFO ShellRunner:70 | EXEC: /usr/bin/xcrun codesign -d --entitlements :- /Users/testmaskin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.6.4/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app
2018-03-20 16:46:05.171 INFO ShellRunner:70 | EXEC: /usr/bin/xcrun codesign -d --entitlements :- /Users/testmaskin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.6.4/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app
2018-03-20 16:46:05.258 INFO ShellRunner:70 | EXEC: /usr/bin/xcrun security find-identity -v -p codesigning
2018-03-20 16:46:05.466 ERROR ConsoleWriter:32 | No valid iOSDeveloperIdentities found on system.

但是,配置文件存在于/Users/testmaskin/Library/MobileDevice/Provisioning Profiles目录中,并且该配置文件中存在设备UDID。请参阅下面的输出。

$ /usr/bin/xcrun security find-identity -v -p codesigning
1) 95CC7E649668236B68C7D309A07AAC5E3C9B409B "iPhone Distribution: Polly Lal (***********)"
     1 valid identities found

不确定我在这里缺少什么。我有一堆这样的测试设备连接到他们自己的Mac Mini主机上。这些设置中的每一个都表现出这个问题。所以我确定它不是因为设备故障。任何帮助表示赞赏。

1 个答案:

答案 0 :(得分:0)

我使用的是分发证书。有人指出这不是正确的。我生成了一个新的开发人员证书,重新生成了该证书的配置文件,并且工作正常!