# XCTUnwrap not available during \`swift test\`

**URL:** <https://forums.swift.org/t/xctunwrap-not-available-during-swift-test/28878>\
**Category:** Using Swift\
**Tags:** testing, xctest\
**Created:** [September 16, 2019, 7:53pm UTC](https://forums.swift.org/t/xctunwrap-not-available-during-swift-test/28878 "2019-09-16T19:53:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ciauri](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ciauri/32/8568_2.png) [@ciauri](https://forums.swift.org/u/ciauri)\
**Post date:** [September 16, 2019, 7:53pm UTC](https://forums.swift.org/t/xctunwrap-not-available-during-swift-test/28878/1 "2019-09-16T19:53:04Z")

</div>

Hello!

When executing `swift test`, I'm getting a `error: use of unresolved identifier 'XCTUnwrap'`. Is this a known issue?

---

<div class="post-metadata">

**Author:** ![Jon\_Shier](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jon_shier/32/921_2.png) [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Post date:** [September 16, 2019, 8:23pm UTC](https://forums.swift.org/t/xctunwrap-not-available-during-swift-test/28878/2 "2019-09-16T20:23:22Z")

</div>

`XCTUnwrap` is new API Xcode 11, so depending on your config, it may not be available yet.

---

<div class="post-metadata">

**Author:** ![ciauri](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ciauri/32/8568_2.png) [@ciauri](https://forums.swift.org/u/ciauri)\
**Post date:** [September 16, 2019, 11:35pm UTC](https://forums.swift.org/t/xctunwrap-not-available-during-swift-test/28878/3 "2019-09-16T23:35:27Z")

</div>

Unfortunately this is not the case. I’m using the Swift 5.1 command line tools, so XCTUnwrap should be available.

---

<div class="post-metadata">

**Author:** ![Aciid](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/aciid/32/429_2.png) [@Aciid](https://forums.swift.org/u/Aciid)\
**Post date:** [September 16, 2019, 11:40pm UTC](https://forums.swift.org/t/xctunwrap-not-available-during-swift-test/28878/4 "2019-09-16T23:40:34Z")

</div>

This is a known issue in SwiftPM right now.

---

<div class="post-metadata">

**Author:** ![duan](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/duan/32/40252_2.png) [@duan](https://forums.swift.org/u/duan)\
**Post date:** [September 21, 2019, 6:02pm UTC](https://forums.swift.org/t/xctunwrap-not-available-during-swift-test/28878/5 "2019-09-21T18:02:06Z")

</div>

Filed [SR-11501](https://bugs.swift.org/browse/SR-11501)

---

<div class="post-metadata">

**Author:** ![thisIsTheFoxe](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/thisisthefoxe/32/8598_2.png) [@thisIsTheFoxe](https://forums.swift.org/u/thisIsTheFoxe)\
**Post date:** [October 24, 2019, 10:20am UTC](https://forums.swift.org/t/xctunwrap-not-available-during-swift-test/28878/6 "2019-10-24T10:20:30Z")

</div>

is there any update with this? .-.
