# Adding packages in swift playgrounds 4

**URL:** <https://forums.swift.org/t/adding-packages-in-swift-playgrounds-4/54173>\
**Category:** Using Swift\
**Created:** [December 20, 2021, 3:23pm UTC](https://forums.swift.org/t/adding-packages-in-swift-playgrounds-4/54173 "2021-12-20T15:23:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nokdoot](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@nokdoot](https://forums.swift.org/u/nokdoot)\
**Post date:** [December 20, 2021, 3:23pm UTC](https://forums.swift.org/t/adding-packages-in-swift-playgrounds-4/54173/1 "2021-12-20T15:23:42Z")

</div>

I'm learning swift and developing toy program on ipad  
but when I add swiftnio, clangtarget is not supported error happen  
cant' swfit ploygrounds add external packages yet?

---

<div class="post-metadata">

**Author:** ![Kyle-Ye](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/kyle-ye/32/19686_2.png) [@Kyle-Ye](https://forums.swift.org/u/Kyle-Ye)\
**Post date:** [December 20, 2021, 4:43pm UTC](https://forums.swift.org/t/adding-packages-in-swift-playgrounds-4/54173/2 "2021-12-20T16:43:30Z")

</div>

Swift Playground 4 on iPad only supports Swift target which means it does not support C/C++/ObjC target.  
But you can still use those targets if you open it(.swiftpm) on Mac with Xcode(It will give you a warning though)

---

<div class="post-metadata">

**Author:** ![FGRios](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/fgrios/32/21169_2.png) [@FGRios](https://forums.swift.org/u/FGRios)\
**Post date:** [January 1, 2022, 11:38pm UTC](https://forums.swift.org/t/adding-packages-in-swift-playgrounds-4/54173/3 "2022-01-01T23:38:54Z")

</div>

I am trying to add the Swift-Algorithms package and I get the same error message.

---

<div class="post-metadata">

**Author:** ![Kyle-Ye](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/kyle-ye/32/19686_2.png) [@Kyle-Ye](https://forums.swift.org/u/Kyle-Ye)\
**Post date:** [January 2, 2022, 3:23am UTC](https://forums.swift.org/t/adding-packages-in-swift-playgrounds-4/54173/4 "2022-01-02T03:23:07Z")

</div>

Swift-algorithms is indeed a pure Swift Package, but it has a dependence on swift-numerics. And swift-numerics has a C target - \_NumericsShims. So you can't use it on iPad's Swift Playground 4 currently.

 ![Screen Shot 2022-01-02 at 11.22.30.png](https://global.discourse-cdn.com/swift/original/3X/f/6/f6b3ce58ab69918156cbfe4ba3a68805eb802ece.png)
