google / EarlGrey

:tea: iOS UI Automation Test Framework
http://google.github.io/EarlGrey/
Apache License 2.0
5.62k stars 744 forks source link

Default example test crashes #1890

Open avdwerff-ddy opened 1 year ago

avdwerff-ddy commented 1 year ago

Following the docs with the basic setup and sample test:

`class MyFirstEarlGreyTest: XCTestCase {

func testExample() { let application: XCUIApplication = XCUIApplication() application.launch() EarlGrey.setHostApplicationCrashHandler(GREYHostApplicationCrashHandler?) } }`

crashes after opening and closing the app a couple of times with:

Host background port not assigned. Application under test may have failed to launch and/or does not link to EarlGrey's AppFramework.

What am I missing.. I linked the AppFramework