expo-community-flipper: EAS build fails - 'FBDefines/FBDefines.h' file not found

Hi,

I am trying to setup Flipper for first time in my Expo app but something fails and I have no idea how to fix. I followed this blog post - https://blog.expo.dev/developing-react-native-with-expo-and-flipper-8c426bdf995a Maybe a relevant issue - https://github.com/facebook/flipper/issues/478 ?

Dependencies:

"expo": "^46.0.0",
"react-native-flipper": "^0.164.0",
"expo-community-flipper": "^46.0.1",

Error log:

....
› Copying   react-native ios/build/Build/Products/Debug-iphonesimulator/FlipperKit/FlipperKit.framework/Headers/FBDefines.h ➜ ../../../Users/expo/workingdir/build/mobile/ios/Pods/FlipperKit/iOS/FBDefines/FBDefines.h
› Compiling react-native Pods/FlipperKit » UIView+SKInvalidation.mm

❌  (/Users/expo/workingdir/build/mobile/ios/build/Build/Products/Debug-iphonesimulator/FlipperKit/FlipperKit.framework/Headers/SKMacros.h:11:9)

   9 | #define SKMACROS_H
  10 | 
> 11 | #import <FBDefines/FBDefines.h>
     |         ^ 'FBDefines/FBDefines.h' file not found
  12 | 
  13 | #ifdef __cplusplus
  14 | #define SK_EXTERN_C_BEGIN extern "C" {
› Compiling react-native Pods/FlipperKit » UIColor+SKSonarValueCoder.mm
› Compiling react-native Pods/FlipperKit » UICollectionView+SKInvalidation.mm

❌  (/Users/expo/workingdir/build/mobile/ios/build/Build/Products/Debug-iphonesimulator/FlipperKit/FlipperKit.framework/Headers/SKMacros.h:11:9)

   9 | #define SKMACROS_H
  10 | 
> 11 | #import <FBDefines/FBDefines.h>
     |         ^ 'FBDefines/FBDefines.h' file not found
  12 | 
  13 | #ifdef __cplusplus
....

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (13 by maintainers)

Most upvoted comments

Just adding a comment if someone runs also into these exceptions when building for iOS with expo-build-properties with useFrameworks: 'static' + expo-community-flipper

❌ error: Multiple commands produce '/Users/expo/Library/Developer/Xcode/DerivedData/MyApp-bxmbpizqcfjivacfihxakrpkfskb/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/fmt.framework'

❌ error: Multiple commands produce '/Users/expo/Library/Developer/Xcode/DerivedData/MyApp-bxmbpizqcfjivacfihxakrpkfskb/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/folly.framework'

For now I fixed it by setting in eas.json

      "ios": {
        "env": {
          "FLIPPER_DISABLE": "1"
        },
      },

i also changed the Podfile a little bit

We anchor off of the fabric_enabled arg instead of the flipper enabled statement (as it’d be easier to catch if the fabric arg changed), so I think we’ll be okay in SDK47.

Also, the tailed line helps a ton. I think that gives us “as good as it gets” parity with a regular react-native setup. Appreciate your support on all of this from the Expo side. @all-contributors, can you add @kudo for docs and questions? ❤️

I’ll try the new options, thank you so much! But first, I need to dig into another failure related to expo-firebase-analytics - the latest version won’t build even without expo-community-flipper. It fails with 'react/bridging/CallbackWrapper.h' file not found.