UI Tests pass in Xcode, but fail on CircelCI

All my UI Tests are passing when I run them locally in Xcode or through command line with ‘xcodebuild test’. However, I’m getting the following error in CircleCI when the same set of tests run:

“UI Testing Failure - No matches found for WebView”

I’ve seen similar issues in this forum, but none of them were answered. Can anyone help with this issue?