-
Notifications
You must be signed in to change notification settings - Fork 2
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
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_FlipperKitNetworkPlugin" etc. for iOS production #90
Comments
I've tried everything in #30 (comment) and facebook/flipper#816 (comment). Because add_flipper_pods was moved to within the react native package, I did not modify that. I also followed #13 when upgrading to 0.62.2 from 0.61.1, including re-adding the bridging header. However, I'm still getting this error. |
Update: same issue persists after upgrading to react native 0.63.2 |
I had the same errors in my app after upgrading from RN I was able to get my app to build for release by removing this line from
I have no idea if this is a proper way to fix this or not. Can anyone confirm? |
@curiousdustin I can confirm that it worked! Now I'm getting another error (#87) which seems unrelated to this issue. |
@curiousdustin Also, after checking the project.pbxproj of the sample app, there isn't the -DFB_SONARKIT_ENABLED=1 anywhere in the file. Therefore, I believe your fix is the correct one. |
setting |
Having the same issue as well. I'm upgrading from |
@Taylor123 the fix for me was to remove instead of adding the -DFB_SONARKIT_ENABLED=1 flag for release/production builds. I originally added the line when upgrading to react native 0.62.2 due to facebook/react-native#28406 (comment). |
@emersonhsieh Yea i saw my project had the same flag enabled! |
Removing the flag worked for me as well. Thanks @curiousdustin |
@curiousdustin Thanks for sharing this. I'm not smart enough to say if this is definitely the correct fix but it makes a lot of sense and seems pretty safe as Flipper is supposed to be enabled only in DEBUG mode and removing this flag would disable the code inside |
I updated from RN 0.62 to 0.64 and ran into the same issue. However I'm not sure this is correct. I don't know how this I followed the instruction in the react upgrade helper and it says to add flipper with on The have this code:
So I'm starting to think that the upgrade instructions are wrong and one needs the ´#if DEBUG` flag as well. |
This solves the problem om my M1: |
Environment
Upgrading version
0.63.2
Description
I upgraded from React Native 0.62.2 to 0.63.1 manually using the upgrade helper, because the automatic helper wasn't working. The application builds successfully in Debug (Product -> Scheme -> Build Configuration -> Debug), but fails for the Release build configuration with the following error:
Reproducible demo
AppDelegate.m.txt
Podfile.txt
Attached is my Podfile and AppDelegate.m (added txt so that it would upload to Github). Looking at the upgrade helper, I should mention that I have the following in AppDelegate.m. I also tried commenting out the #ifdef FB_SONARKIT_ENABLED and #endif but it still failed.
and in didFinishLaunchingWithOptions:
In the Podfile, the only differences from the sample are the app name, OneSignal extension, and expo unimodules. Thanks for the help in advance!
The text was updated successfully, but these errors were encountered: