Open Tjmoronez opened 5 years ago
Hey, does Calabash run against Simulator on your machine?
@JoeSSS Yes it does.
nice. then your ENV is fine :) I wonder if it is because of older iOS version. Do you have a phone with iOS 12.1 maybe?
Am Fr., 22. Feb. 2019 um 08:29 Uhr schrieb Tjmoronez < notifications@github.com>:
@JoeSSS https://github.com/JoeSSS Yes it does.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/calabash/calabash-ios/issues/1406#issuecomment-466301472, or mute the thread https://github.com/notifications/unsubscribe-auth/ARTqPKg6aLfb2Ijgf51Mw8eK-KcVoCYfks5vP5xbgaJpZM4bImrp .
@JoeSSS I get the same error on a ios phone with 12.1 as well.
I should have included this in original post, I see run-loop install the DeviceAgent app on my phone, but then I see no indication that my app or DeviceAgent opens. I just run into the time out on: DEBUG: HTTP: get http://192.168.1.8:27753/1.0/health {:retries=>1800, :timeout=>180.0}
Just to make sure.. your devices are in the same network, app is installed and all the prerequisites from https://github.com/calabash/calabash-ios/wiki/Testing-on-Physical-Devices#2-configuring-your-device are met?
Yes, all those prerequisites are met.
Additional info, after looking into
/Users/me/.run-loop/DeviceAgent/DerivedData >& /Users/me/.run-loop/DeviceAgent/current.log
When start_test_server_in_background runs xcrun xcodebuild test-without-building -xctestrun /Users/me/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app/PlugIns/DeviceAgent.xctest/DeviceAgent-device.xctestrun -destination id=15ccaf277cf790a6b781e27a8b3180dd8ccc3d0d -derivedDataPath /Users/me/.run-loop/DeviceAgent/DerivedData
I am seeing the following error:
2019-02-25 12:07:37.769 xcodebuild[33249:960085] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2019-02-25 12:07:37.769 xcodebuild[33249:960085] [MT] IDETestOperationsObserverDebug: 13.614 sec, +13.614 sec -- end
2019-02-25 12:07:37.769 xcodebuild[33249:960085] Error Domain=IDETestOperationsObserverErrorDomain Code=6 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted, NSUnderlyingError=0x7fd673363a30 {Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Test runner exited before starting test execution." UserInfo={NSLocalizedDescription=Test runner exited before starting test execution., NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the result bundle at /Users/me/.run-loop/DeviceAgent/DerivedData/Logs/Test/Test-Transient Testing-2019.02.25_12-07-24--0800.xcresult}}}
Testing failed:
Runner (327) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying error: Test runner exited before starting test execution.))
** TEST EXECUTE FAILED **```
I am also seeing a code signing error when I dive deeper into logs:
2019-02-26 14:46:20.213 DeviceAgent-Runner[269:7562] Running tests...
2019-02-26 14:46:20.283 DeviceAgent-Runner[269:7562] The bundle “DeviceAgent” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2019-02-26 14:46:20.283 DeviceAgent-Runner[269:7562] (dlopen_preflight(/var/containers/Bundle/Application/8A1420FD-1447-4764-B6A5-5F893144EE46/DeviceAgent-Runner.app/PlugIns/DeviceAgent.xctest/DeviceAgent): no suitable image found. Did find:
/var/containers/Bundle/Application/8A1420FD-1447-4764-B6A5-5F893144EE46/DeviceAgent-Runner.app/PlugIns/DeviceAgent.xctest/DeviceAgent: code signature invalid for '/var/containers/Bundle/Application/8A1420FD-1447-4764-B6A5-5F893144EE46/DeviceAgent-Runner.app/PlugIns/DeviceAgent.xctest/DeviceAgent'
)
From different logs I see different Ruby versions that are used. I think officially the tool supports Ruby 2.3.1. Can you try to change to this one?
Same results for ruby 2.3.1, logs stating: code signature invalid for DeviceAgent, I should be able to code sign this with my apple dev cert correct?
Sadly, 2.3.x is the supported version. Calabash is not ready for 2.4 or 2.5
/usr/local/lib/ruby/gems/2.5.0/gems/run_loop-4.1.0/
Is that directory and the directories under it writeable without sudo? run-loop needs to expand the DeviceAgent-Runner.app.zip.
The code signing problem needs to be addressed.
Try using iOSDeviceManager to resign or install the DeviceAgent-Runner.app.
This is my first time running UI tests with calabash and I am running into an issue with the DeviceAgent. iOS - 11.4.1 Xcode - 10.1 MacOS - Mojave calabash-cucumber- 0.21.8
running
start_test_server_in_background
in calabash-ios console is giving me the errorCould not connect to the DeviceAgent service.
The logs files don't display anything that looks useful:
Any help would be appreciated, thank you