Xcode 8 Beta - Convert to Current Swift Syntax Failed: Could not find test host
Solution 1:
This worked for me:
- Select the Xcode project in the lefthand browser.
- Click on your test target in the Project's
General
tab. - Disclose "Testing". In my project the "Host Application" pulldown button was blank. Select your appropriate host application.
- Try building your test target now. If that succeeds then converting syntax should as well.
I had this problem after installing the Xcode 8 beta so I assume this is related.
Picture Credit to @karthikkck
Solution 2:
It cost me a bit of time to find the "Host Application" pulldown mentioned in the otherwise very helpful answer by iluvcapra.
So this is what he meant:
This is where you find the pulldown menu. Select your main target.
Solution 3:
I find easy fix for this, just edit your Scheme and disable tests.
And run conversion again.