EAS build - Fastlane build failed

I need to use a library not supported by expo, react-native-compressor. So I decided to use a dev client. When I run eas build --profile development --platform iOS I get the following error:

› Compiling Pods/Pods-myapp » Pods-myapp-dummy.m
› Packaging Pods/Pods-myapp » libPods-myapp.a
› Executing myapp » [CP] Check Pods Manifest.lock
› Executing myapp » Start Packager on http://localhost:8081
    conditional compilation flags do not have values in Swift; they are either present or absent (rather than 'EX_DEV_LAUNCHER_ENABLED=1')
    conditional compilation flags do not have values in Swift; they are either present or absent (rather than 'EX_DEV_MENU_ENABLED=1')
› Compiling myapp » noop-file.swift
› Compiling myapp » ExpoModulesProvider.swift
› Copying   myapp.swiftmodule/arm64-apple-ios.swiftmodule ➜ myapp.build/Objects-normal/arm64/myapp.swiftmodule
› Copying   myapp.swiftmodule/arm64.swiftmodule ➜ myapp.build/Objects-normal/arm64/myapp.swiftmodule
› Copying   myapp.swiftmodule/arm64.swiftdoc ➜ myapp.build/Objects-normal/arm64/myapp.swiftdoc
› Copying   myapp.swiftmodule/arm64-apple-ios.swiftdoc ➜ myapp.build/Objects-normal/arm64/myapp.swiftdoc
› Copying   myapp.build/DerivedSources/myapp-Swift.h ➜ myapp.build/Objects-normal/arm64/myapp-Swift.h
› Compiling myapp » myapp_vers.c
› Compiling myapp » main.m
› Compiling myapp » AppDelegate.m
› Linking   myapp » myapp
❌  duplicate symbol '_EXCanAskAgain' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌  duplicate symbol '_EXExpiresKey' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌  duplicate symbol '_EXGrantedKey' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌  duplicate symbol '_EXPermissionExpiresNever' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌  duplicate symbol '_EXStatusKey' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌  duplicate symbol '_OBJC_CLASS_$_EXPermissionsService' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌  duplicate symbol '_OBJC_IVAR_$_EXPermissionsService._moduleRegistry' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌  duplicate symbol '_OBJC_IVAR_$_EXPermissionsService._requesters' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌  duplicate symbol '_OBJC_IVAR_$_EXPermissionsService._requestersByClass' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌  duplicate symbol '_OBJC_METACLASS_$_EXPermissionsService' in
┌─ libExpoModulesCore.a(EXPermissionsService.o)
└─ UMReactNativeAdapter(EXPermissionsService.o)
❌  duplicate symbol '_OBJC_CLASS_$_EXReactNativeUserNotificationCenterProxy' in
┌─ libExpoModulesCore.a(EXReactNativeUserNotificationCenterProxy.o)
└─ UMReactNativeAdapter(EXReactNativeUserNotificationCenterProxy.o)
❌  duplicate symbol '_OBJC_METACLASS_$_EXReactNativeUserNotificationCenterProxy' in
┌─ libExpoModulesCore.a(EXReactNativeUserNotificationCenterProxy.o)
└─ UMReactNativeAdapter(EXReactNativeUserNotificationCenterProxy.o)

❌  ld: 12 duplicate symbols for architecture arm64


❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)

▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	Ld /Users/expo/Library/Developer/Xcode/DerivedData/myapp-dotfgulqwgjxhfasrepzetdchukl/Build/Intermediates.noindex/ArchiveIntermediates/myapp/InstallationBuildProductsLocation/Applications/myapp.app/myapp normal (in target 'myapp' from project 'myapp')
▸ (1 failure)
** ARCHIVE FAILED **


The following build commands failed:

	Ld /Users/expo/Library/Developer/Xcode/DerivedData/myapp-dotfgulqwgjxhfasrepzetdchukl/Build/Intermediates.noindex/ArchiveIntermediates/myapp/InstallationBuildProductsLocation/Applications/myapp.app/myapp normal (in target 'myapp' from project 'myapp')

(1 failure)

Exit status: 65

+-------------+-------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.185.1                 |
| sdk         | iPhoneOS15.0.sdk        |
+-------------+-------------------------+
Looks like fastlane ran into a build/archive error with your project
It's hard to tell what's causing the error, so we wrote some guides on how
to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
Before submitting an issue on GitHub, please follow the guide above and make
sure your project is set up correctly.
fastlane uses `xcodebuild` commands to generate your binary, you can see the
the full commands printed out in yellow in the above log.
Make sure to inspect the output above, as usually you'll find more error information there
[stderr] [!] Error building the application - see the log above
Error: Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases.
Fastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.

Here’s my package.json

{
  "name": "my-app",
  "version": "1.0.0",
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "@hookform/resolvers": "^2.8.8",
    "@react-navigation/bottom-tabs": "^6.0.9",
    "@react-navigation/native": "^6.0.6",
    "@react-navigation/stack": "^6.0.11",
    "axios": "^0.25.0",
    "expo": "~44.0.0",
    "expo-av": "^10.2.0",
    "expo-camera": "~12.1.0",
    "expo-dev-client": "~0.8.2",
    "expo-image-picker": "^12.0.1",
    "expo-secure-store": "~11.1.0",
    "expo-splash-screen": "~0.14.1",
    "expo-status-bar": "~1.2.0",
    "fiction-expo-restart": "^1.1.2",
    "firebase": "9.0.0",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-hook-form": "^7.24.2",
    "react-native": "0.64.3",
    "react-native-compressor": "^1.5.0",
    "react-native-emoji": "^1.8.0",
    "react-native-gesture-handler": "~2.1.0",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-mask-input": "^1.1.1",
    "react-native-modal": "^13.0.0",
    "react-native-safe-area-context": "3.3.2",
    "react-native-screens": "~3.10.1",
    "react-native-searchable-dropdown": "^1.1.3",
    "react-native-svg": "12.1.1",
    "react-native-swipe-gestures": "^1.0.5",
    "react-native-web": "0.17.1",
    "styled-components": "^5.3.3",
    "yup": "^0.32.11"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@types/react": "~17.0.21",
    "@types/react-native": "~0.64.12",
    "typescript": "~4.3.5"
  },
  "private": true,
  "resolutions": {
    "styled-components": "^5"
  }
}

And my app.json:

{
  "expo": {
    "name": "my-app",
    "slug": "my-app",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "com.marcusccoelho.myapp"
    },
    "plugins": [
      "react-native-compressor"
    ],
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#FFFFFF"
      }
    },
    "web": {
      "favicon": "./assets/favicon.png"
    }
  }
}

It worked I init a new project and install react-native-compressor, but not with the actual project I’m developing.

Ideas?

Thanks a lot!