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-122.214.171.124 clang-1126.96.36.199)
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.