Skip to content

Example app build issues with Flipper on iOS #422

Description

@brody2consult

UPDATED:

I have seen sporadic issues with debug build on iOS if Flipper is enabled. I generally disable Flipper before building and running on iOS to save build time.

Here is how I generally disable Flipper on iOS:

  • remove or comment out the step(s) in example/ios/Podfile
  • on React Native pre-0.63: remove or ifdef the Flipper code out of example/ios/AppDelegate.m
  • do pod install in example/ios

for reference: react-native-tvos/react-native-tvos#49 (comment)


OUTDATED description from February 2021:

When I tried generating the example with --example-react-native-version react-native@next (gives me react-native@0.64.0-rc.3 at this point), I could not run the example app on iOS. I am getting the following build failure:

In file included from /Users/brodybits/dev/create-react-native-module/tt-D441EEC8-BD92-4E36-8B79-6E76C408DB56/react-native-a-test/example/ios/Pods/Flipper/xplat/Flipper/FlipperClient.cpp:8:
In file included from /Users/brodybits/dev/create-react-native-module/tt-D441EEC8-BD92-4E36-8B79-6E76C408DB56/react-native-a-test/example/ios/Pods/Flipper/xplat/Flipper/FlipperClient.h:16:
In file included from /Users/brodybits/dev/create-react-native-module/tt-D441EEC8-BD92-4E36-8B79-6E76C408DB56/react-native-a-test/example/ios/Pods/Flipper/xplat/Flipper/FlipperInitConfig.h:10:
In file included from /Users/brodybits/dev/create-react-native-module/tt-D441EEC8-BD92-4E36-8B79-6E76C408DB56/react-native-a-test/example/ios/Pods/Headers/Public/Flipper-Folly/folly/io/async/EventBase.h:46:
In file included from /Users/brodybits/dev/create-react-native-module/tt-D441EEC8-BD92-4E36-8B79-6E76C408DB56/react-native-a-test/example/ios/Pods/Headers/Public/Flipper-Folly/folly/io/async/AsyncTimeout.h:19:
In file included from /Users/brodybits/dev/create-react-native-module/tt-D441EEC8-BD92-4E36-8B79-6E76C408DB56/react-native-a-test/example/ios/Pods/Headers/Public/Flipper-Folly/folly/io/async/EventBaseBackendBase.h:21:
In file included from /Users/brodybits/dev/create-react-native-module/tt-D441EEC8-BD92-4E36-8B79-6E76C408DB56/react-native-a-test/example/ios/Pods/Headers/Public/Flipper-Folly/folly/io/async/EventUtil.h:21:
In file included from /Users/brodybits/dev/create-react-native-module/tt-D441EEC8-BD92-4E36-8B79-6E76C408DB56/react-native-a-test/example/ios/Pods/Headers/Public/Flipper-Folly/folly/portability/Event.h:24:
/Users/brodybits/dev/create-react-native-module/tt-D441EEC8-BD92-4E36-8B79-6E76C408DB56/react-native-a-test/example/ios/Pods/Headers/Public/libevent/event.h:44:10: fatal error: 'event2/event-config.h' file not found
#include <event2/event-config.h>
         ^~~~~~~~~~~~~~~~~~~~~~~

I discovered this failure while testing PR #421 (use react-native-init-func to generate example app).

This needs further investigation. Any help from the user community would be much appreciated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions