You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a package uses XCTest in a normal target (not a test target), it fails to build in the generated Xcode project for iOS and tvOS. Here is an example such target:
Environment
Swift 5.1, Xcode 11, Mojave
Additional Detail from JIRA
md5: 0e27e1549b37839f4dd2835a07ce14ed
Issue Description:
If a package uses XCTest in a normal target (not a test target), it fails to build in the generated Xcode project for iOS and tvOS. Here is an example such target:
Opening in Xcode by double‐clicking Package.swift and building for iOS will succeed, both the device and simulator.
generate-xcodeproj
and then building for iOS or tvOS succeeds for the simulator.But:
generate-xcodeproj
and then building for iOS or tvOS fails for the device.The exact error is:
Additional notes:
#if canImport(XCTest)
does not help.macOS works fine, but it has no device‐simulator distinction.
watchOS does not work in this situation at all, but that is a separate bug.
The text was updated successfully, but these errors were encountered: