flipper
flipper copied to clipboard
Flipper doesn't build with Xcode "react-native": "0.70.0",
🐛 Bug Report
Xcode 12.5 RC React Native 0.70.0
Exact same problem! Stuck on this for quite a while.
Downgrade to flipper 0.163.0 seems to have fixed it.
Same problem here, but with xcode 14.0.1
Seems like Xcode is trying to link Flipper again for release builds.
This had been fixed by @mweststrate a long time ago: https://github.com/facebook/flipper/issues/976#issuecomment-638957209
I wonder what happened for this bug to come up again. For now, my workaround has been downgrading, just like @Acetyld :/ The most recent published version (that is on npm, cocoapods, and Maven) without this bug is 0.164.0.
I was also looking for a solution for this problem, I updated to the latest version of Flipper and I was no longer able to do the building, after a while I found the solution through the Flipper site itself.
you can write this line in podfile :flipper_configuration => FlipperConfiguration.enabled(["Debug"]),
.....
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
use_react_native!(
:path => config[:reactNativePath],
# Hermes is now enabled by default. Disable by setting this flag to false.
# Upcoming versions of React Native may rely on get_default_flags(), but
# we make it explicit here to aid in the React Native upgrade process.
:hermes_enabled => true,
:fabric_enabled => flags[:fabric_enabled],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => FlipperConfiguration.enabled(["Debug"]),
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
.....
hope this can help you all :)
@BS-FastwebIT
My podfile has been looking like this ever since they introduced FlipperConfiguration. (Obviously, I change the version number when updating.) It doesn't change anything—at least not for versions greater than 0.164.0.
Any solution for this issue yet? I've tried 0.163.0 but still facing this issue when try to create in Release build in IOS
Same here, I can build the app locally, but any release version will fail with the error below:
Undefined symbols for architecture arm64: "_OBJC_CLASS_$_FlipperClient", referenced from: objc-class-ref in libreact-native-flipper.a(FlipperReactNativeJavaScriptPluginManager.o) ld: symbol(s) not found for architecture arm64
Xcode 13.3 React Native 0.70.3 react-native-flipper 0.172.0
For me, the problem appeared after installing react-native-flipper (0.173.0).
To be able to install the app on my phone, I use this workaround, but it's not suitable for production:
:flipper_configuration => FlipperConfiguration.enabled(["Debug", "Release"], { 'Flipper' => '0.173.0' }),
Same issue for me, I am going to try adding "Release"
The same issue occurred here. I fixed this error by setting flipper version to 0.163.0 in Podfile:
:flipper_configuration => FlipperConfiguration.enabled(["Debug"], {'Flipper' => '0.163.0'}),
and setting react-native-flipper to 0.163.0 in package.json:
However this caused a different error:
main.jsbundle does not exist.
I got around that by adding the following build-script to package.json
"ios:build": "react-native bundle --entry-file='index.ts' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'"
and running the above before building the app in xcode.
I downgraded flipper version to 0.163.0 without changing anything else, and it worked for me. It is not the solution we are aiming for though, just temporary one.
Still an issue on the most recent 0.174.0
@alicja99 it worked for me too, thank you. :)
@Acetyld @alicja99 thanks that worked. Was about to completely remove Flipper as a last resort.
downgrade to flipper 0.163.0 works for me with react native 0.70.2 & xcode 14.1
I got it working with package.json: "react-native": "0.70.6", "react-native-flipper": "^0.164.0", Podfile: :flipper_configuration => FlipperConfiguration.enabled(["Debug"], {'Flipper' => '0.164.0'}), android/gradle.properties: FLIPPER_VERSION=0.164.0
Build: App Center Xcode version: 14.1 Node.js: 16.x
Same issue on my end, using :flipper_configuration => FlipperConfiguration.enabled(["Debug"], { 'Flipper' => '0.174.0' }) Any news on this one?
Still happens on react-native 0.70.6 and react-native-flipper 0.176.1
@longb1997 : i have also same react-native version 0.70.6 but i solve with :flipper_configuration => FlipperConfiguration.enabled(["Debug", "Release"], {'Flipper' => '0.163.0'}),
I got it working with package.json: "react-native": "0.70.6", "react-native-flipper": "^0.164.0", Podfile: :flipper_configuration => FlipperConfiguration.enabled(["Debug"], {'Flipper' => '0.164.0'}), android/gradle.properties: FLIPPER_VERSION=0.164.0
Build: App Center Xcode version: 14.1 Node.js: 16.x
Works for me!
In my case the problem was different.
Using in Podfile the default flipper configuration:
:flipper_configuration => FlipperConfiguration.enabled(["Debug"]),
I found that when launched pod install --verbose I saw that the branch version was different, in my case was 1.76.0.1.9. The 1.76.0.1.9 missed asm folder needed to link the code.
In the screen I put the right version.
To fix, call pod repo list and update the CDN (usually named as trunk) with
pod repo update trunk (if at your side is named trunk)
Launch again pod install --verbose and you will see the same and right version of the Pod.
Same issue using "react-native-flipper": "^0.189.0", with RN 0.70.8
Reverting to 0.163.0, npm i, pod install fixed the issue.
When there are issues in my rn apps it's always flipper, I have tried all fixes mentioned above and nothing works.
any solution please, Im feel much tied and painful when upgrade react native to 0.71.x
just set
:flipper_configuration => FlipperConfiguration.enabled(["Debug", "Release"]),
work to me, nothing to do
just set
:flipper_configuration => FlipperConfiguration.enabled(["Debug", "Release"]),work to me, nothing to do
@fukemy thank you!! it works for me
Same issue using
"react-native-flipper": "^0.189.0",with RN 0.70.8Reverting to
0.163.0,npm i,pod installfixed the issue.
Hey, i have the same problem with flipper 0.189.0 i downgraded to 0.163.0 and works fine Any update on the latest version?
I have the same problem with flipper 0.192.0 I downgraded it to 0.163.0 and works perfectly. Not working with the latest version 0.201.0 also. Any update on the latest version?
We also encountered this issue and spent almost two days investigating it. We eventually discovered that the versions of the package.json and Podfile files were different. After updating both files to flipper 0.163.0, the issue was resolved. (This was for React Native 0.71.0.)