facebook / flipper

A desktop debugging platform for mobile developers.
https://fbflipper.com/
MIT License
13.31k stars 954 forks source link

[iOS] Build errors in a React Native app #4770

Open aknad opened 1 year ago

aknad commented 1 year ago

🐛 Bug Report

I've a lot of these types of build errors if I integrate Flipper in my RN app:

Screenshot 2023-05-25 at 12 23 06

I also found an issue in the React Native GitHub, but I think is somehow related to Flipper because if I comment the integration in the Podfile, the errors disappear

To Reproduce

Environment

RN - 0.71.7 Flipper - 0.125.0

RTGit commented 1 year ago
Screenshot 2023-05-25 at 2 13 43 PM

Similar to me, RN - 0.71.7, Flipper - any version. Without a flipper works fine.

namhihi237 commented 1 year ago

The same issue

KaappoRaivio commented 1 year ago

I'm having the same problem

namhihi237 commented 1 year ago

I resolved this by downgrade Xcode from 14.3 to 14.2, Hope can help.

kabhamo commented 1 year ago

@namhihi237 can you tell us what is the version of RN and flipper you are using?

bretep commented 1 year ago

Same issue

bretep commented 1 year ago
ios/Pods/Headers/Private/Flipper-Folly/folly/portability/GFlags.h:66:7: error: redefinition of 'FlagSaver'
class FlagSaver {};
      ^
In file included from ios/Pods/Flipper-Folly/folly/io/async/TimeoutManager.cpp:20:
In file included from  ios/Pods/Headers/Public/Flipper-Glog/glog/logging.h:86:
/opt/homebrew/include/gflags/gflags.h:278:23: note: previous definition is here
class GFLAGS_DLL_DECL FlagSaver {
                      ^
bretep commented 1 year ago

When trying to uninstall...

image
bretep commented 1 year ago

When unsetting the CPATH, which includes the libraries in homebrew, Flipper-Glog now complains.

So this confirms the previous error that Flipper-Folly uses a static library whereas Flipper-Glog is using a shared library.

CPATH=/opt/homebrew/include

unset CPATH

ios/Pods/Headers/Public/Flipper-Glog/glog/logging.h:86:10: fatal error: 'gflags/gflags.h' file not found
#include <gflags/gflags.h>
bretep commented 1 year ago

After trying many things, I decided to comment out this line, and the build succeeded.

image
dimitris4 commented 1 year ago

same issue

chrisariesgonzales commented 1 year ago

same issue(2)

shanilka-psl commented 11 months ago

same issue(3) I thought use_framework! was the reason for this. It's not. Disabling the flipper was the only option.

huuanhopp commented 11 months ago

same isssue in xcode 15 and react native 0.72.5

jtdaugh commented 11 months ago

Same issue

MKruk1 commented 11 months ago

Same issue

massimilianochiodi commented 9 months ago

SAME ISSUE!

PaoloSalta commented 9 months ago

Same issue with xCode 15.0.1 and RN 0.72.7

riamon-v commented 9 months ago

Any news on this ?

Jashanpreet1998 commented 8 months ago

same issue xcode 15.0.0 and RN 0.73.1

working fine when comment this line flipper_configuration => flipper_config

kekloon97 commented 8 months ago

Any update for it?

EkremBulut01 commented 8 months ago

same issue xcode 15.0.0 and RN 0.73.1

  • Flipper (0.201.0):
  • Flipper-Folly (~> 2.6)

working fine when comment this line flipper_configuration => flipper_config

Can you share your pod file ?

Nicat26 commented 4 months ago

1) comment this line :flipper_configuration => flipper_config, 2) cd ios 3) pod install --repo-update

PaoloSalta commented 2 months ago

Same issue with XCode 15.4 and RN 0.73.6

tanyisi commented 2 months ago

same issue xcode 15.0.0 and RN 0.73.1

  • Flipper (0.201.0):
  • Flipper-Folly (~> 2.6)

working fine when comment this line flipper_configuration => flipper_config

Can you share your pod file ?

@Jashanpreet1998 may i know what is your xcode version?