"Failed to create driver session. Check device is configured for automation and try again." when trying to record the test on ios

I am seeing this error “Failed to create driver session. Check device is configured for automation and try again.” when i try to record the test on ios . On simulator i could open the application but through testproject getting this error