Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example app build issues with Flipper on iOS #422

Open
brody4hire opened this issue Feb 23, 2021 · 3 comments
Open

Example app build issues with Flipper on iOS #422

brody4hire opened this issue Feb 23, 2021 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@brody4hire
Copy link
Owner

brody4hire commented Feb 23, 2021

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.

@brody4hire brody4hire added bug Something isn't working help wanted Extra attention is needed labels Feb 23, 2021
@brody4hire brody4hire pinned this issue Feb 23, 2021
brody4hire pushed a commit that referenced this issue Feb 24, 2021
for upcoming 0.20.0 release

* React Native pre-0.63 support is now deprecated (see issue #423)
* known issue with React Native 0.64 (rc) on iOS (see issue #422)
* add link to @otobank fork (see #425)
* document --use-apple-networking as EXPERIMENTAL & NOT SUPPORTED
  (see issue #426)
@thertzelle
Copy link

What is the best way to get this project running again? Even with 0.63.3 the project is failing for me:

example/ios/Pods/Headers/Public/libevent/event.h:44:10: 'event2/event-config.h' file not found
#include <event2/event-config.h>

@brody4hire
Copy link
Owner Author

Even with 0.63.3 the project is failing for me:
[...]

You may want to try disabling Flipper on iOS, which should give you a faster debug build as well. Here are the steps:

  • remove code to add Flipper pods in example/ios/Podfile
  • remove the debug Flipper code from the example AppDelegate.m (or ifdef it out)
  • do pod install in example/ios

then try building again. For reference: react-native-tvos/react-native-tvos#49 (comment)

@brody4hire brody4hire removed the bug Something isn't working label Mar 17, 2021
@brody4hire brody4hire changed the title Example app does not work with react-native 0.64 (rc) on iOS Example app build issues with Flipper on iOS Mar 17, 2021
@contfedorov
Copy link

Possibly, this is related to react-native and Flipper version used?
I use Flipper 0.141.0 and react-native 0.67.4 in my project, and everything works well yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants