I get the following errors when attempting to compile and run my tests within XCode:
XCUIElement' is not a member type of 'XCTest'
'XCUIKeyboardKey' is not a member type of 'XCTest'
'XCTActivity' is not a member type of 'XCTest'
Failed to load module 'XCTest'
The tests compile and run fine from the command line.
The procedure I used:
Apple Swift version 5.1 (swiftlang-118.104.22.168 clang-122.214.171.124)
1) Delete derived data
2) rm -rf .build
3) rm -rf projectName.xcodeproj
4) swift package update
5) swift test (tests compile, run and pass)
6) swift package generate-xcodeproj
7) Open project in xcode-beta
Does anyone have a solution or is this a bug?
Problem still occurs in Beta 4.
Switching to XCode 11 Toolchain (XCode -> Toolchains) resolved this issue.