Open aristeia opened 7 years ago
EDIT: I figured out the emulator devices issue. By passing in something into the destination of the xcodebuild command (like one of the idevice's udids), the WebDriverAgent build began to work:
jenkins$ xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "id=f6d0770375288a9dc49c70746221ddc0bcb2fca8" build
Output from fbsimctl:
jenkins$ ./fbsimctl --debug-logging F267E6B7-D8EF-4E81-93C0-6218FD28A7FC launch_xctest /Users/jenkins/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest com.apple.mobilesafari --port 8095 -- listen
Overriding the Default Logger with <LogReporter: 0x7faaa1e3f6a0>
CoreSimulator: Loading from /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework
CoreSimulator: Successfully loaded
CoreSimulator: SimDevice has correct path of /Applications/Xcode.app
Loaded All Private Frameworks [CoreSimulator]
Completed Pool Preconditons
MobileDevice: Loading from /System/Library/PrivateFrameworks/MobileDevice.framework
MobileDevice: Successfully loaded
Loaded All Private Frameworks [MobileDevice]
DTXConnectionServices: Loading from /Applications/Xcode.app/Contents/SharedFrameworks/DTXConnectionServices.framework
DTXConnectionServices: Successfully loaded
DTXConnectionServices: DTXConnection has correct path of /Applications/Xcode.app
DTXConnectionServices: DTXRemoteInvocationReceipt has correct path of /Applications/Xcode.app
XCTest: Loading from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCTest.framework
XCTest: Successfully loaded
XCTest: XCTestConfiguration has correct path of /Applications/Xcode.app
Loaded All Private Frameworks [DTXConnectionServices, XCTest]
Application Did Launch => Process MobileSafari | PID 49383
F267E6B7-D8EF-4E81-93C0-6218FD28A7FC | iPhone SE | Booted | iPhone SE | iOS 10.3 | x86_64: launch: Process MobileSafari | PID 49383
Connecting Test Bundle
Creating the test bundle connection.
Listening for proxy connection request from the test bundle (all platforms)
Resuming the test bundle connection.
Checking test manager availability...
Starting test session with ID B8C7865A-6074-4924-A161-2A59FB7D410C
testmanagerd handled session request using protcol version 22.
Got proxy channel request from test bundle
Test bundle is ready, running protocol 22, requires at least version 8. IDE is running 22 and requires at least 8
Test Bundle is Ready
_XCT_testBundleReadyWithProtocolVersion:minimumVersion:
Starting the daemon connection
Resuming the daemon connection.
Whitelisting test process ID 49383
Got whitelisting response and daemon protocol version 22
Ready to execute test plan
TestManager Did Connect => TestManager Awaiting Result for (Test Host PID 49383 | Test Host Bundle com.apple.mobilesafari | Session ID B8C7865A-6074-4924-A161-2A59FB7D410C)
Bundle Connection scheduling start of Test Plan
Daemon Notified of start of test plan
listen started: Http: No Hid: No stdin: false
Test Plan Started
_XCT_didBeginExecutingTestPlan
Started initilizing for UI testing.
_XCT_testSuite:didStartAt:
_XCT_testSuite:didStartAt:
_XCT_testSuite:didFinishAt:runCount:withFailures:unexpected:testDuration:totalDuration:
_XCT_testSuite:didStartAt:
_XCT_testSuite:didStartAt:
_XCT_testCaseDidStartForTestClass:method:
However, real devices still encounter that error.
any update or any plan to support launching WDA on real devices?
WDA can run on real devices just fine, such as through xcodebuild
with the test
flag at the end. My issue is running WDA via fbsimctl
on real devices.
You can look at #345
We just released idb. which has support for both simulators and devies. We recommend switching over. As part of our renewed commitment to this repo we are cleaning up old issues and will be monitoring and reviewing more closely from now on. if you still think this issue is relevant feel free to reopen
Hi, I have multiple Macs with multiple idevices available to me to run WebDriverAgent via the fbsimctl framework. After custom installing it by cloning the FBSimulatorControl repo,
brew installing carthage
, and running the./build.sh fbsimctl build output
command. I can successfully run the fbsimctl command line tool. Likewise, after building WebdriverAgent with the following command, I'm able to use the xctest output as an argument for fbsimctl:However, after booting a simulator and re-running the unlock-keychain command, I get the following error when trying to run
com.apple.mobilesafari
:With real devices, I get an even more basic issue at the level of an error in Swift:
During neither of these errors am I able to access the WDA server at localhost:8090. Why might these be happening?