-
Notifications
You must be signed in to change notification settings - Fork 956
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
Question: Try to archive and got error Undefined symbol: _OBJC_CLASS_$_FlipperClient #4471
Comments
This how I fix the issue: react-native.config.js
Podfile
AppDelegate.mmI added
|
This is not resolved, at the very least the Flipper documentation is wrong. The claim is:
but when you put the following in your Podfile:
you still end up with this in XCode:
Edit: I'll make a new issue with this for visibility |
In my case, this was solved by installing the proper version of the I could see in the |
I was using version react-native-flipper@0.177.0 It worked
|
@yakupdurmus thanks, both
|
If I downgrade like you suggested in package.json, does it mean that I need also to use an old version of flipper on the computer itself? (dmg file) |
I didnt change my desktop flipper application version. Its working. |
well well well i just downgrade to "react-native-flipper": "^0.164.0", from 239 sumthin.. its really givin me a lot of headache, thanks you bless you all |
Undefined symbol: OBJC_CLASS$_FlipperClient This is an error that caused some confusion and many answers that partially solve the issue but none of them address the issues in a coherent way. WHAT CAUSES THE ERROR: In release builds it is caused by trying to line to react-native-flipper library that is not provided for linking yet required in You can find these files in Targets Support Files > Pods-yourAppName in Xcode. In my opinion this is an oversight on behalf of the react-native-flipper team. Most likely in your build output log you will find something like this.:
If you inspect FlipperReactNativeJavaScriptPluginManager file you will see that it is trying to:
And since there is no library to be linked the linker fails and the whole build fails. YOU MIGHT ALREADY TRIED THIS SOLUTIONS:
They might have worked but they are very dependant on the version of react-native-flipper that you use. use_flipper! - deprecated in newer versions, PRODUCTION=1 - env variable is not always available in your build, As you can see here the PRODUCTION=1 is available only since this commit: YET FOR OLDER VERSIONS IT WILL CONTINUE INCLUDES But still the pods require other pods: And going from FlipperKit.podspec Which will include Flipper.podspect And along the way one of them is going to add that pesky ld flag again. HOW TO SOLVE THIS ISSUE:
flag and following this commit it will work. If you are not so lucky and have to run older version of react-native-flipper you have to delete the linker flag from your release pods Targets Support Files > Pods-yourAppName You can do it manually just to try out if your build will produce an archive for TestFlight or release Or add a post install function that will remove the undesired linker flag.
|
@twboc => I tried your solution for rn 0.74.5 but still can't archive Still get the error
I did the manual flipper integration as it has been removed in rn 0.74. I have this in my pod file :
and this as recommended by Flipper team
And implementation in my AppDelegate.mm
EDITNevermind I found the solution, I just wrapped my code in AppDelegate for DEBUG :
|
Hello everyone!
I've tried to archive my project and got error
Undefined symbol: _OBJC_CLASS_$_FlipperClient
I'm using:
"react-native-flipper": "0.177.0",
"react-native": "0.70.5",
in my Podfile:
anyone face the same issue?
The text was updated successfully, but these errors were encountered: