# Import no module found

**URL:** <https://community.apollographql.com/t/import-no-module-found/5650>\
**Category:** Client SDKs\
**Tags:** client\
**Created:** [February 6, 2023, 7:27pm UTC](https://community.apollographql.com/t/import-no-module-found/5650 "2023-02-06T19:27:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Dowling](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/john_dowling/32/3830_2.png) [@John\_Dowling](https://community.apollographql.com/u/John_Dowling)\
**Post date:** [February 6, 2023, 7:27pm UTC](https://community.apollographql.com/t/import-no-module-found/5650/1 "2023-02-06T19:27:34Z")

</div>

Hi Guys,

This is a very noob question so sorry for that in advance.

Edit:

Platform: IOS/Xcode  
Version: apollo-ios 1.0

So from an apollo-ios perspective I have followed the documentation, I have downloaded the schema from the Api, I have created a query that I want to execute, I have run the cli tool to genrate the json configuration and I have used that in the tool to generate the swift package.

The issue has come when I try to use the packge that has been generated, (and this could be a complete noob issue) I have gone into Xcode-\>add package-\>add local-\>selected package.

The package now shows in my explorer in Xcode but if I try to import the name of the package (Alta in this case) i get the following.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/apollographql/original/2X/e/ee146caf73ee451799b458c6d0500cfcf97440de.png)

I am not sure where to go with this next as the doumentation just says the following

> - 
> #### [Add the generated schema and operation files to your target](https://www.apollographql.com/docs/ios/migrations/1.0#add-the-generated-schema-and-operation-files-to-your-target)

> By default, a directory containing your generated schema files is within a directory with the schema name you provided (i.e., `MySchemaName`). Your generated operation and fragment files are in a subfolder within the same directory.

> If you created your target in an Xcode project or workspace, you’ll need to manually add the generated files to your target.

---

<div class="post-metadata">

**Author:** ![calvincestari](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/calvincestari/32/339_2.png) [@calvincestari](https://community.apollographql.com/u/calvincestari)\
**Post date:** [February 7, 2023, 12:11am UTC](https://community.apollographql.com/t/import-no-module-found/5650/2 "2023-02-07T00:11:43Z")

</div>

That screenshot looks like Xcode so I’m assuming this is an Apollo iOS related question?

You also mentioned “get the package generated” so it sounds like your codegen config is for it to output an SPM package for the schema. If so, have you added the generated package as a dependency to your project and linked the library in Xcode? A little more detail about your setup/config might help.

---

<div class="post-metadata">

**Author:** ![John\_Dowling](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/john_dowling/32/3830_2.png) [@John\_Dowling](https://community.apollographql.com/u/John_Dowling)\
**Post date:** [February 7, 2023, 8:10am UTC](https://community.apollographql.com/t/import-no-module-found/5650/3 "2023-02-07T08:10:11Z")

</div>

Sorry for not being clear.

Yes all the above is correct but i will edit the question above

Thanks

---

<div class="post-metadata">

**Author:** ![arsh.captano](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/arsh.captano/32/4380_2.png) [@arsh.captano](https://community.apollographql.com/u/arsh.captano)\
**Post date:** [June 23, 2023, 1:10pm UTC](https://community.apollographql.com/t/import-no-module-found/5650/4 "2023-06-23T13:10:59Z")

</div>

I had the same problem. Try moving Alta to the root directory, then add the package. That worked for me.

---

<div class="post-metadata">

**Author:** ![Justin\_Gonzalez](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/justin_gonzalez/32/5359_2.png) [@Justin\_Gonzalez](https://community.apollographql.com/u/Justin_Gonzalez)\
**Post date:** [February 6, 2025, 8:48pm UTC](https://community.apollographql.com/t/import-no-module-found/5650/5 "2025-02-06T20:48:43Z")

</div>


