appium: WebDriverAgentRunner build failed

I’ve installed Appium 2 (2.0.0-beta.61) via NPM with xcuitest driver (4.21.28).

When I try the command with the real device’s id I’ve got the error:

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=real-device-id' test

I’ve got the errors:

Testing failed:
        No visible @interface for 'XCUIDevice' declares the selector 'pressButton:'
        No visible @interface for 'XCUIDevice' declares the selector 'pressButton:'
        Unknown type name 'XCUIDeviceButton'; did you mean 'XCUIRemoteButton'?
        Use of undeclared identifier 'XCUIDeviceButtonHome'; did you mean 'XCUIRemoteButtonHome'?
        Use of undeclared identifier 'XCUIDeviceButtonVolumeUp'
        Use of undeclared identifier 'XCUIDeviceButtonVolumeDown'
        No visible @interface for 'XCUIDevice' declares the selector 'pressButton:'
        Use of undeclared identifier 'XCUIDeviceButtonHome'
        Use of undeclared identifier 'XCUIDeviceButtonHome'
        Testing cancelled because the build failed.

** TEST FAILED **


The following build commands failed:
        CompileC /Users/user/Library/Developer/Xcode/DerivedData/WebDriverAgent-grkfbrzvpmnylxeyutthrhtnztqz/Build/Intermediates.noindex/WebDriverAgent.build/Debug-maccatalyst/WebDriverAgentLib.build/Objects-normal/x86_64/XCUIDevice+FBHelpers.o /Users/user/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'WebDriverAgentLib' from project 'WebDriverAgent')
(1 failure)

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 24 (7 by maintainers)

Most upvoted comments

To be honest my setup is quite tricky. I use Linux PC with connected iPhone and run macOS using Docker (https://github.com/sickcodes/Docker-OSX) 🤷‍♂️

But I was able to fix the issue and run the simple test on the real device 🎉

So I installed xcuitest 4.12.0 and set up certificates and signing manually and it did the trick