当我尝试在升级到
Xcode 8之前运行完全运行的项目时,我不断收到错误
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be
configured correctly for targets which use Swift. Use the [Edit >
Convert > To Current Swift Syntax…] menu to choose a Swift version or
use the Build Settings editor to configure the build setting directly.
尝试转换为swift 3.0后,我不断得到错误:
Convert to Current Swift Syntax Failed Could not find test host for
CastleTests: TEST_HOST evaluates to: (location of my file for my project and test folders)
我已经尝试将另一个项目转换为swift 3并且它工作得非常好,但是这个项目不起作用.产品的所有位置设置与工作项目中的位置相同我很困惑为什么我不断收到此错误
解决方法
i)Select every target of Test in Project. ii)Navigate to General tab.
iii)Host application name is empty,so Update with appropriate host name .
再次构建,它将正常工作.