# How to import Swift package into Objective-C using Xcode

**URL:** <https://forums.swift.org/t/how-to-import-swift-package-into-objective-c-using-xcode/43978>\
**Category:** Using Swift\
**Tags:** spm, objective-c, packagemanager, interoperability\
**Created:** [January 19, 2021, 2:26pm UTC](https://forums.swift.org/t/how-to-import-swift-package-into-objective-c-using-xcode/43978 "2021-01-19T14:26:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Diggory](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/diggory/32/4320_2.png) [@Diggory](https://forums.swift.org/u/Diggory)\
**Post date:** [January 19, 2021, 4:23pm UTC](https://forums.swift.org/t/how-to-import-swift-package-into-objective-c-using-xcode/43978/2 "2021-01-19T16:23:31Z")

</div>

Does this help?

> [@Xcode 11, importing types from Swift packages into Obj-C](https://forums.swift.org/t/xcode-11-importing-types-from-swift-packages-into-obj-c/30225):
>
> Hello, Is it possible to use types defined in Swift packages in Obj-C code in Xcode 11? This document: [Apple Developer Documentation](https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_swift_into_objective-c) (assuming that I understand it correctly) seems to imply that Xcode will auto-generate appropriate headers to allow the user to reference Swift types in Obj-C code. I would like to use a Swift package in an Obj-C codebase that I have for an old macOS Cocoa application. In Xcode 11 it appears to be possible to add Swift packages to projects, even if they are O…

---

_[View the full topic](https://forums.swift.org/t/how-to-import-swift-package-into-objective-c-using-xcode/43978)._
