Convert to Swift 3 error: "Convert to current Swift syntax failed. Could not find a test node for ..."

When I try to run my project, which worked fine before moving to Xcode 8, I keep getting an error

"Use an outdated version of the Swift language" (SWIFT_VERSION) is required to be configured correctly for purposes that use Swift. Use [Edit> Convert> To Current Swift Syntax ...] to select the Swift version, or use the Build settings editor to directly configure the build options.

After trying to convert to swift 3.0, I constantly get an error:

Convert Swift to current syntax. Could not find test host for CastleTests: TEST_HOST evaluates: (location of my file for my project and test folders)

I tried converting another project to swift 3 and it worked fine, but this one will not work. All product locations are configured in the same way as those in the working draft, I am confused about why I keep getting this error.

+7
ios xcode swift xcode8 compiler-errors
source share
1 answer

i) Select each test target in the project. ii) Click the General tab. iii) The host application name is empty , so update with the appropriate host name.

Create again , and it will work fine.

+16
source share

All Articles