flipper icon indicating copy to clipboard operation
flipper copied to clipboard

Flipper doesn't build with Xcode "react-native": "0.70.0",

Open R-Kiran-Raj opened this issue 3 years ago • 40 comments
trafficstars

🐛 Bug Report

Screenshot 2022-10-31 at 2 13 05 PM

Xcode 12.5 RC React Native 0.70.0

R-Kiran-Raj avatar Oct 31 '22 08:10 R-Kiran-Raj

Exact same problem! Stuck on this for quite a while.

Acetyld avatar Oct 31 '22 11:10 Acetyld

Downgrade to flipper 0.163.0 seems to have fixed it.

Acetyld avatar Oct 31 '22 11:10 Acetyld

Same problem here, but with xcode 14.0.1

sylv1b avatar Oct 31 '22 13:10 sylv1b

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.

TheWirv avatar Nov 03 '22 11:11 TheWirv

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 avatar Nov 03 '22 12:11 BS-FastwebIT

@BS-FastwebIT image 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.

TheWirv avatar Nov 03 '22 12:11 TheWirv

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

salmandayal avatar Nov 04 '22 07:11 salmandayal

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

lucasftcruz avatar Nov 04 '22 13:11 lucasftcruz

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' }),

sylv1b avatar Nov 04 '22 14:11 sylv1b

Same issue for me, I am going to try adding "Release"

fjmorant avatar Nov 04 '22 14:11 fjmorant

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.

Steven-Thelin avatar Nov 07 '22 08:11 Steven-Thelin

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.

alicja-mruk avatar Nov 08 '22 18:11 alicja-mruk

Still an issue on the most recent 0.174.0

TheWirv avatar Nov 11 '22 16:11 TheWirv

@alicja99 it worked for me too, thank you. :)

iamabdulhaseeb avatar Nov 13 '22 19:11 iamabdulhaseeb

@Acetyld @alicja99 thanks that worked. Was about to completely remove Flipper as a last resort.

xeroxoid avatar Nov 14 '22 10:11 xeroxoid

downgrade to flipper 0.163.0 works for me with react native 0.70.2 & xcode 14.1

YaoHuiJi avatar Nov 15 '22 01:11 YaoHuiJi

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

JaakkoKammonen24center avatar Nov 17 '22 09:11 JaakkoKammonen24center

Same issue on my end, using :flipper_configuration => FlipperConfiguration.enabled(["Debug"], { 'Flipper' => '0.174.0' }) Any news on this one?

cristianserban-dometic avatar Dec 16 '22 01:12 cristianserban-dometic

Still happens on react-native 0.70.6 and react-native-flipper 0.176.1

longb1997 avatar Jan 09 '23 10:01 longb1997

@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'}),

pgpankajbigstep avatar Jan 12 '23 05:01 pgpankajbigstep

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!

stereodenis avatar Jan 14 '23 12:01 stereodenis

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.

Screenshot 2023-01-20 alle 10 46 28

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.

fcaldarelli avatar Jan 20 '23 09:01 fcaldarelli

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.

HugoGresse avatar Apr 14 '23 15:04 HugoGresse

When there are issues in my rn apps it's always flipper, I have tried all fixes mentioned above and nothing works.

fondue-tech avatar May 19 '23 07:05 fondue-tech

any solution please, Im feel much tied and painful when upgrade react native to 0.71.x

fukemy avatar May 25 '23 04:05 fukemy

just set :flipper_configuration => FlipperConfiguration.enabled(["Debug", "Release"]),

work to me, nothing to do

fukemy avatar May 25 '23 09:05 fukemy

just set :flipper_configuration => FlipperConfiguration.enabled(["Debug", "Release"]),

work to me, nothing to do

@fukemy thank you!! it works for me

pgy108103 avatar May 25 '23 17:05 pgy108103

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.

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?

raphaelinmanage avatar May 28 '23 06:05 raphaelinmanage

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?

Nensi9 avatar Jun 28 '23 05:06 Nensi9

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.)

mManishTrivedi avatar Jul 17 '23 12:07 mManishTrivedi