Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-11501] XCTUnwrap is not available for SwiftPM on 5.1 #4663

Closed
dduan opened this issue Sep 21, 2019 · 5 comments
Closed

[SR-11501] XCTUnwrap is not available for SwiftPM on 5.1 #4663

dduan opened this issue Sep 21, 2019 · 5 comments
Assignees
Labels

Comments

@dduan
Copy link
Collaborator

dduan commented Sep 21, 2019

Previous ID SR-11501
Radar rdar://problem/51959291
Original Reporter @dduan
Type Bug
Environment

Xcode 11 GM 2

Additional Detail from JIRA
Votes 6
Component/s Package Manager
Labels Bug
Assignee @aciidb0mb3r
Priority Medium

md5: 8c288844b10d333b82c348c07f950084

Issue Description:

When executing tests with {{swift test}} in 5.1, tests that uses XCTUnwrap does not compile, resulting in error {{error: use of unresolved identifier 'XCTUnwrap'}}

@swift-ci
Copy link
Contributor

Comment by Siemen (JIRA)

Still happens on Xcode 11.2.1

@jpsim
Copy link
Contributor

jpsim commented Nov 15, 2019

Is there a way to distinguish between building with Swift Package Manager from the command line versus in Xcode?

#if SWIFT_PACKAGE is true for both (when launching Xcode with xed Package.swift) but XCTUnwrap is only unavailable from the command line.

@swift-ci
Copy link
Contributor

Comment by Morten Bøgh (JIRA)

Still an issue in Xcode 11.3.1.

@jpsim
Copy link
Contributor

jpsim commented Apr 14, 2020

I believe this was fixed in Xcode 11.4.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
@henrik-dmg
Copy link

@jpsim it does seem that way. Can this issue be closed?

@dduan dduan closed this as completed Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants