# How to handle errors when running the pod install command? (/en/api-reference/faq/integration/flutter_pod)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

When running `pod install`, the following error occurs:

```bash
[!] Invalid Podfile file: /xxx/ios/Flutter/Generated.xcconfig must exist. If you’re running pod install manually, make sure flutter pub get is executed first.
```

## Reason [#reason]

The error message indicates that the `Generated.xcconfig` file is missing. This file is necessary for building the Flutter app on iOS devices. If you do not run `flutter pub get` to generate this file before executing `pod install`, you will encounter this error.

## Solution [#solution]

To resolve this issue, follow these steps:

1. Open the terminal and navigate to the root directory of your Flutter project.
2. Run the `flutter pub get` command to fetch and update the project's dependencies. This command will also generate the `Generated.xcconfig` file and other necessary configuration files.
3. Rerun `pod install`.
