EAS build failed with "module 'Firebase' not found."

Hi I’m trying to migrate expo build to eas build but failed with the following error though I haven’t seen this error on ‘expo build’.

› Compiling HelloFan » AppDelegate.m
❌  (ios/HelloFan/AppDelegate.m:2:9)

  1 | #import "AppDelegate.h"
> 2 | @import Firebase;
    |         ^ module 'Firebase' not found
  3 | 
  4 | #import <React/RCTBridge.h>
  5 | #import <React/RCTBundleURLProvider.h>

My app is under monorepo and I added expo-firebase-analytics in my library package and structure is something like this:

apps/myapp/ <-- this is the app that use auth and logging
packages/auth/ <-- this is the library
packages/logging/ <-- this is the library

Then my auth package has firebase package and logging package has ‘expo-firebase-analytics’ and works correctly when I use expo build:ios.

How can I fix the error for eas build?