# Xcode project with SPM dependencies

**URL:** <https://forums.swift.org/t/xcode-project-with-spm-dependencies/18157>\
**Category:** Using Swift\
**Created:** [November 20, 2018, 11:50pm UTC](https://forums.swift.org/t/xcode-project-with-spm-dependencies/18157 "2018-11-20T23:50:19Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![SDGGiesbrecht](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sdggiesbrecht/32/4768_2.png) [@SDGGiesbrecht](https://forums.swift.org/u/SDGGiesbrecht)\
**Post date:** [January 8, 2019, 9:57pm UTC](https://forums.swift.org/t/xcode-project-with-spm-dependencies/18157/15 "2019-01-08T21:57:50Z")

</div>

I tried to follow your steps on my own machine.

1. Directly copying and pasting your “Dependencies” manifest did not work. I had to add `// swift-tools-version:4.2` to the very top. Did you just leave that out when you copied and pasted?

Other than that, the package and the generated “Dependencies” Xcode project both work properly.

The combined workspace runs into its trouble _in the application target_ (meaning all the targets it inherits from the “Dependencies” project still work fine on their own). Since the application does not `import` `CTulipIndicators`, and `SwiftTulipIndicators` has not `@_exported` it, I think this all comes down to the general inconsistencies around `import`. You can read reams on the subject in this thread:

> [@@\_exported and fixing import visibility](https://forums.swift.org/t/exported-and-fixing-import-visibility/9415):
>
> I told @Jon_Shier I'd write something up on @\_exported and visibility in general, so here it is. It's a bit of a brain dump, but I know if I wait until I have time to edit it it won't get posted for months. (That's already true, in fact; I've had this model kicking around my head for probably close to a year now.) So, thanks for the prompt, Jon. Today, if your Swift library "Foo" uses a library "Bar", the headers (or swiftmodule files) of "Bar" must be available to all clients of "Foo". This i…

Maybe @Aciid knows if there is anything the package manager could do to mitigate it? Maybe there is someplace Xcode would look by default where the Xcode target generated for a C‐dependent package target might put the module map?

---

_[View the full topic](https://forums.swift.org/t/xcode-project-with-spm-dependencies/18157)._
