# Import a folder from your Mac

> Start a project from a folder of code on your Mac, in a local Team. AirBuild uses the folder where it is and copies nothing.

Source: https://air.build/docs/get-started/import-local-folder/

> [!NOTE]
> **Mac and local Teams only**
>
> Importing a folder works in AirBuild for Mac, in a local Team, on the Mac that runs that Team. You won't find it on iPhone or iPad, in a cloud Team, or on another Mac signed in to the same Team. To make a local Team, see [Choose where your Agents run](https://air.build/docs/get-started/where-agents-run/). For a cloud Team, put the code on GitHub and [import it from GitHub](https://air.build/docs/get-started/import-from-github/).

Importing a folder starts a project from code you already have on your Mac. AirBuild doesn't copy the folder: the project uses it where it is, and your Agents work on the files in it.

## Import into a new project

1. Open your local Team in AirBuild on the Mac that runs it.
2. Click **+** in the sidebar, then **Import Project › Local Folder…**. If the menu shows **Import Local Folder…** instead, click that. You can also choose **File › Import Local Folder…** from the menu bar.
3. A folder panel opens: "Choose the folder to import. It is used in place; nothing is copied." Pick the folder with your code.
4. Click **Import Folder**.

AirBuild makes a new project named after the folder, opens its chat and connects the folder to it. A folder name's extension is dropped, so a folder called `MyApp.xcodeproj` gives a project called MyApp. The project is only made once you've picked a folder, so closing the panel with **Cancel** leaves nothing behind.

## Import into an empty project

A project whose chat is still empty shows an **Import Local Folder** card ("Open an existing project") under the greeting. Click it, pick the folder, and click **Import Folder**. The folder becomes that project's files.

## What happens after the import

- **The folder is used in place.** Nothing is copied. When your Agents change a file, they change it in your folder, and changes you make in your own editor are what they see.
- **The project may be renamed.** If AirBuild can read an Xcode project in the folder, the project takes the app's name and is linked to its bundle identifier. If it can't, the project keeps the folder's name until your Agents build the app.
- **The chat says what arrived.** A line in the project's chat reads "Imported _AppName_ from _path_", or "Imported _path_" when there's no app name, and your Agents pick the project up from there.

> [!WARNING]
> **Your Agents edit the folder itself**
>
> Because nothing is copied, everything your Agents do happens in your real folder. If the code isn't in Git, make a copy of the folder before you import it.

## Work with the folder later

**iPhone**

Project folders are only on the Mac that runs the local Team. On iPhone and iPad you work with the project through its chat.

**Mac**

With the project open, the **File** menu has:

- **Open Project Folder**: shows the folder in Finder.
- **Open in**: a submenu of the apps on this Mac that can open the folder, such as your code editor. See [Open a project in Xcode, Cursor or another editor](https://air.build/docs/build/open-in-your-editor/).
- **Set Project Folder**: points the project at a different folder. Its panel says "Choose the folder for this project. It is used in place; nothing is copied." and its button is **Set Folder**.

The **⋯** menu in the project's toolbar also has **Open Project Folder** and **Open in**.

> [!WARNING]
> **Set Project Folder replaces the project's files**
>
> If the project was using the folder AirBuild made for it, the files in that folder are removed and the folder you pick becomes the project's files. If the project already pointed at a folder of yours, that folder is left as it is.

## If something goes wrong

If the import fails, the app shows **Unable to Import Folder** with the reason.

| What you see | What to do |
| --- | --- |
| There's no **Local Folder…** under **Import Project**, and no **Import Local Folder…** in the File menu | You're in a cloud Team, or on a Mac that doesn't run this local Team. Switch to your local Team on the Mac that runs it. |
| "The target must live outside the managed projects directory." | You picked a folder inside the folder where AirBuild keeps its own projects. Pick a folder outside it. |
| "The target must not contain the managed projects directory." | The folder you picked holds AirBuild's own projects folder, for example your whole home folder. Pick the folder of the one app instead. |
| "The host Mac is offline. Open AirBuild on it to bring this team back." | AirBuild on the Mac that runs this Team isn't reachable. Open AirBuild on that Mac and try again. |
| **Unable to Create App**: "The app could not be created. Check your connection and try again." | The project couldn't be made, so nothing was imported. Check that you're online and try again. |

**Does AirBuild upload my folder?**

The import itself copies nothing: the folder stays on your Mac and the project uses it there. Some things do leave your Mac, including what your Agents send to AI services while they work, as you agreed to on **Before You Start**; the app's name and bundle identifier that AirBuild reads from the folder; and the import line in the chat, which includes the folder's path.

**Can I import the same way on iPhone?**

No. Only the Mac that runs a local Team has the folder. On iPhone and iPad, use [Import a project from GitHub](https://air.build/docs/get-started/import-from-github/).

**Can I import a folder into a project that already has files?**

The **Import Local Folder** card only shows in a project whose chat is empty. To start from a folder, use **Import Project › Local Folder…** on the **+** menu, which makes a new project for it.
