WDA not getting installed

I’m trying to run my tests on ios simulator with webdriverio and appium. But webdriver agent doesn’t get installed and app is not launching. When I try to run my tests it only installs the app and then nothing happens. I’m using webdriverio v6 and appium v1.18. When I start server on Appium Desktop it throws “Error: Failed to create session. The URL ‘/session’ did not map to a valid resource” error so I don’t run my tests when server is running on Appium Desktop. This is blocking me for days and I really need a solution.