Open wdarlgx opened 7 years ago
@jmoody,when I use another iphone se with ios 10.3.3.it works well, so I think my configure is right,now i don't know how I can do.
There was an error executing:
/Users/automationteam/.rvm/gems/ruby-2.4.2/gems/run_loop-2.6.4/lib/run_loop/device_agent/bin/iOSDeviceManager install /Users/automationteam/.rvm/gems/ruby-2.4.2/gems/run_loop-2.6.4/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app --device-id fa646c144b564b7e56ca383eb368703726c4d903
The command generated this output:
2018-02-21 14:54:49.820 iOSDeviceManager[33756:192520] *** Terminating app due to uncaught exception 'CBXException', reason: 'Unable to find appropriate codesign identity for device fa646c144b564b7e56ca383eb368703726c4d903 / app com.apple.test.DeviceAgent-Runner combo'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff4cd0e2fb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fff73681c76 objc_exception_throw + 48
2 iOSDeviceManager 0x00000001055b20c6 +[Command resourcesFromArgs:] + 0
3 iOSDeviceManager 0x00000001055be562 +[MobileProfile bestMatchProfileForApplication:device:] + 284
4 iOSDeviceManager 0x00000001055905e9 -[PhysicalDevice installApp:mobileProfile:codesignIdentity:resourcesToInject:shouldUpdate:] + 551
5 iOSDeviceManager 0x00000001055909d6 -[PhysicalDevice installApp:resourcesToInject:shouldUpdate:] + 67
6 iOSDeviceManager 0x0000000105593228 +[InstallAppCommand execute:] + 876
7 iOSDeviceManager 0x00000001055b4c99 +[CLI process:] + 1063
8 iOSDeviceManager 0x0000000105580431 main + 121
9 libdyld.dylib 0x00007fff74270145 start + 1
)
I had a similar issue
@NahidSiddiqui
: 'Unable to find appropriate codesign identity for device fa646c144b564b7e56ca383eb368703726c4d903 / app com.apple.test.DeviceAgent-Runner combo'
My best guess is that you have no provisioning profile on your device or you have no valid code signing identities.
Environment: Calabash : 0.20.6 run_loop: 2.4.1 Xcode: Xcode 8.3.3 Build version 8E3004b iphone se: 10.3.3 macOS Sierra: 10.12.5
Steps to reproduce:
Build app to iphone se (10.3.3)
Launch calabash-ios console sangfor$ DEBUG=1 DEVICE_TARGET="test-real-devices-udid" APP_BUNDLE_PATH="/Users/my/testapp/path/test-cal.app" DEVICE_ENDPOINT=http://192.200.36.104:37265 calabash-ios console
Execute: start_test_server_in_background
######################### Useful Methods ########################## ids => List all the visible accessibility ids. labels => List all the visible accessibility labels. text => List all the visible texts. marks => List all the visible marks. tree => The app's visible view hierarchy. flash => flash(); Disco effect for views matching
verbose => Turn debug logging on.
quiet => Turn debug logging off.
copy => Copy console commands to clipboard.
clear => Clear the console.
Calabash says, "Ready to rumble." calabash-ios 0.20.5> start_test_server_in_background SHELL: xcrun simctl list devices --json SHELL: xcrun instruments -s devices DEBUG: HTTP: get http://192.200.36.104:27753/1.0/health {:retries=>1, :timeout=>0.5} DEBUG: HTTP: get http://192.200.36.104:27753/1.0/health {:retries=>1, :timeout=>0.5} DEBUG: Waiting for DeviceAgent to launch... SHELL: /Users/sangfor/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.4.1/lib/run_loop/device_agent/bin/iOSDeviceManager install --device-id a5fdc9ab0ffc28892fb6e3b61ab1ea22a19fce35 -a /Users/sangfor/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.4.1/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app RunLoop::Shell::Error: There was an error executing:
/Users/sangfor/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.4.1/lib/run_loop/device_agent/bin/iOSDeviceManager install --device-id a5fdc9ab0ffc28892fb6e3b61ab1ea22a19fce35 -a /Users/sangfor/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.4.1/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app
The command generated this output:
2017-07-24 14:52:23.236 iOSDeviceManager[21717:1168019] Terminating app due to uncaught exception 'CBXException', reason: 'Error codesigning /Users/sangfor/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.4.1/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app/Frameworks/XCTest.framework: /Users/sangfor/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.4.1/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app/Frameworks/XCTest.framework: replacing existing signature /Users/sangfor/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/run_loop-2.4.1/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app/Frameworks/XCTest.framework: unknown error -1=ffffffffffffffff ' First throw call stack: ( 0 CoreFoundation 0x00007fff9c07e57b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x00007fffb12c21da objc_exception_throw + 48 2 iOSDeviceManager 0x0000000107374f65 +[Command positionalArgShortFlag:] + 0 3 iOSDeviceManager 0x0000000107358fac +[Codesigner resignObject:codesignIdentity:] + 426 4 iOSDeviceManager 0x000000010735a710 +[Codesigner resignAppDir:baseDir:provisioningProfile:codesignIdentity:resourcesToInject:] + 2896 5 iOSDeviceManager 0x000000010735abba +[Codesigner resignAppDir:baseDir:provisioningProfile:resourcesToInject:] + 102 6 iOSDeviceManager 0x0000000107358856 +[Codesigner resignApplication:withProvisioningProfile:resourcesToInject:] + 259 7 iOSDeviceManager 0x00000001073584f0 +[Codesigner resignApplication:withProvisioningProfile:] + 169 8 iOSDeviceManager 0x000000010735403b -[PhysicalDevice installApp:mobileProfile:codesignIdentity:shouldUpdate:] + 641 9 iOSDeviceManager 0x0000000107356c15 +[InstallAppCommand execute:] + 784 10 iOSDeviceManager 0x000000010737770a +[CLI process:] + 1062 11 iOSDeviceManager 0x00000001073456d9 main + 121 12 libdyld.dylib 0x00007fffb1ba3235 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException