Firebase TestLab on IOS - the .xctestrun file didn't specify any test targets

772 views
Skip to first unread message

av...@trendypal.net

unread,
Nov 15, 2018, 2:39:51 PM11/15/18
to Firebase Google Group
Hey,

I'm trying to use firebase TestLab on iOS using this guide:

https://firebase.google.com/docs/test-lab/ios/firebase-console#build_xctests_for_your_app

but after I upload the zip file including the xctestrun file I'm getting the following error:

Upload invalid: the .xctestrun file didn't specify any test targets.

I have two targets in my app and a Tests target and a UI tests target, On both test target, I set the Target I want to test as the host application.

Any ideas?

William Hester

unread,
Nov 15, 2018, 5:35:24 PM11/15/18
to Firebase Google Group
Hey! Thanks for reaching out!

This error happens when your test specification (.xctestrun file) is an empty .plist.


Retry building your app for testing and ensure that your testing targets are part of your "scheme" when you are building.

A good way to check whether or not the test would run is to first build it for testing then navigate to the DerivedData/Build/Products folder and run
$ xcodebuild test-without-building -xctestrun *.xctestrun -destination id=<your iphone's udid> -derivedDataPath output
This will run the test locally, which should reveal any problems before the zip is created and is sent to Firebase Test Lab.

You can also pretty simply just view the contents of the .xctestrun file and ensure that it has test targets specified. If it's just an empty Plist, then there weren't any tests included in your output.
Reply all
Reply to author
Forward
0 new messages