I'm getting this error only when trying to run UITests. I'm not using storyboard and building the app runs fine and Unit testing runs fine as well.
Even recording the UITests works fine and is able to open the app. It's just when I try to run the actual tests that I get the error.
Maybe I'm missing a target somewhere or need to add something to XCUIApplication launch args? Any ideas?
Since Unit tests were working I ended up comparing each line in Linking section under Build settings for both unit tests and UI tests.
Below are the things I changed to get UI tests to start working:
Under bundle loader I had to add $(TEST_HOST)
Under Mach-O Type which was set to executable I had to change it to Bundle.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With