-
Notifications
You must be signed in to change notification settings - Fork 955
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
react-native-flipper
0.171 and up are causing linking errors on iOS Release build
#4457
Comments
Hey ! i'm having the exact same issue.
|
I am having the same issue when trying to compile on x64. |
In my case the problem was different. Using in Podfile the default flipper configuration:
I found that when launched In the screen I put the right version. To fix, call
Launch again |
any news on this ? |
I believe this is as a result of FlipperKit not being linked during release builds: #976 (comment) What solved this for me, was following the upgrade guide to 0.71.1 and utilising the
|
@rossyman Yes this is a workaround. But the code should check is Flipper will be linked, and make |
Hello! I am also using a M1 to build my app.
Does it come from Flipper or from our React Native config? Thanks! |
This is a duplicate to #4278 :( It would be great if this would get fixed at some point so that we can upgrade to the most recent versions. |
Downgrade flipper to version 0.164.0 on IOS, this solves the issue. |
@rossyman |
any solution now?? Where to set NO_FLIPPER = 1? |
From your |
That mean every time after archiving, i need to excute pod install to restore the flipper. And archiving should do NO_FLIPPER=1 pod install, Right? |
|
This worked from me:
|
Works for me. I used,
But it removes Flipper and cannot build in to a device directly. Log `Ignoring digest-crc-0.6.4 because its extensions are not built. Try: gem pristine digest-crc --version 0.6.4 [!] Do not use "pod install" from inside Rosetta2 (x86_64 emulation on arm64). [!] - Emulated x86_64 is slower than native arm64 [!] - May result in mixed architectures in rubygems (eg: ffi_c.bundle files may be x86_64 with an arm64 interpreter) [!] Run "env /usr/bin/arch -arm64 /bin/bash --login" then try again. [!] Your project does not explicitly specify the CocoaPods master specs repo. Since CDN is now used as the default, you may safely remove it from your repos directory via 'pod repo remove master'. To suppress this warning please add 'warn_for_unused_master_specs_repo => false' to your Podfile.` |
I have fixed the error 'Undefined symbol: OBJC_CLASS$_FlipperClient ...' by adding 'Release' to FlipperConfiguration: When it comes to product flavours: This this will help and works fro me. |
This isn't a solution, enabling Flipper in your release builds is frowned upon and unnecessary bloat. |
I think, I have figured out the setup to support latest installable flipper
changing it to
does the trick, I also wrapped the only file that didn't have this I'm not 100% sure on what's going on, but my guess is that during prod build,
|
This worked from me: install flipper to devDependencies, not dependencies. |
After setting up different product flavors and relaunching the app, Flipper client shuts down the bridge thereby disconnecting Metro. This happens everytime I launch the app with Flipper client open or if I open flipper client after launching the app. Any suggestions on how to use Flipper client for debugging while still maintaining the different product flavors? NOTE: This is for the Android app. I have not tested this on the iOS but I'm guessing it'll be the same behaviour. |
what I did was to run:
i'm using Flipper v0.228.0 |
use "export PRODUCTION='1'", before pod install. fix this. because react-native-flipper.podspec contains below code
|
Couldn't get it to work using the latest react-native-flipper version, so what I did to enable local Realm debugging was along the lines of what @truongqt suggested above, with slight differences, i.e.:
Hope this helps. |
@justaso Did you do anything besides making flipper a dev dependency and adding that podfile line of :flipper_configuration => FlipperConfiguration.enabled(["Debug"], { 'Flipper' => '0.163.0' }), ? I am so completely stuck on this. I did those two things and I get flpper errors still. CompileC /Users/janellecontreras/Library/Developer/Xcode/DerivedData/Drinklink-cfdtiroygagvlpgyqcuvcqhhxcyc/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/Objects-normal/arm64/UIView+SKInvalidation.o /Users/janellecontreras/DrinkLink/Drinklink/ios/Pods/FlipperKit/iOS/Plugins/FlipperKitPluginUtils/FlipperKitLayoutHelpers/FlipperKitLayoutHelpers/UIView+SKInvalidation.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'FlipperKit' from project 'Pods') My podfile looks like: `# Resolve react_native_pods.rb with node to allow for hoisting platform :ios, min_ios_version_supported If you are using a
|
@jcontreras28 not really, these I think are the steps that helped me see my project's Realm DB within Flipper desktop app on MacOS. To be honest, it doesn't always work either, sometimes I need to disable/enable the Realm plugin in Flipper many times before the DB appears, not sure if it's an issue with Flipper or I am doing something wrong. |
In our case app broken after release of new IOS 17.4. We tried fix it for several days, and I decided to try update all packages with command: |
This is what actually worked for me, now I'm able to archive my app again. |
π Bug Report
Starting with
react-native-flipper
0.171, every app using this package will fail to link in Release mode on iOS, with the following error:To Reproduce
npx react-native init TestRNProject
cd TestRNProject
yarn install react-native-flipper
cd ios && pod install
yarn ios --configuration Release
The build will fail with:
Source of the problem
This issue is caused by this commit: f65364c
It does not appear on
react-native-flipper
0.164.0` and lower, and started with 0.171.1 (the next released version).As @as4 commented on the commit,
-DFB_SONARKIT_ENABLED
is always set in Release mode byflipper.podspec
, even if Flipper is not enabled by the appPodfile
in this configuration, soreact-native-flipper
tries to link withFlipperClient
, which is not compiled.The solution could be to not have
-DFB_SONARKIT_ENABLED
defined if the RN app's Podfile disables Flipper, or to use another constant inreact-native-client
to check if Flipper is really enabled for this build.Environment
I tested with with:
react-native-flipper
0.177.0The text was updated successfully, but these errors were encountered: