0.62.2 -> 0.63.2 - Xcode error: Undefined symbol: _OBJC_CLASS_$_FlipperKitNetworkPlugin
See original GitHub issueEnvironment
System: OS: macOS 10.15.6 CPU: (8) x64 Intel® Core™ i5-8257U CPU @ 1.40GHz Memory: 2.05 GB / 16.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 14.4.0 - /usr/local/bin/node Yarn: Not Found npm: 6.14.4 - /usr/local/bin/npm Watchman: Not Found Managers: CocoaPods: 1.9.3 - /Users/username/Software/ruby/bin/pod SDKs: iOS SDK: Platforms: iOS 13.6, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: Not Found IDEs: Android Studio: 4.0 AI-193.6911.18.40.6514223 Xcode: 11.6/11E708 - /usr/bin/xcodebuild Languages: Java: 14.0.1 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.11.0 => 16.11.0 react-native: 0.62.2 => 0.62.2 npmGlobalPackages: react-native: Not Found
Upgrading version
0.62.2 -> 0.63.2
Description
I recently upgraded from 0.61.5 to 0.62.2 and followed https://react-native-community.github.io/upgrade-helper/?from=0.61.5&to=0.62.2 and https://github.com/react-native-community/upgrade-support/issues/13 Having multiple targets inside Podfile I found that i have to add a custom configuration to Flipper pods as presented here: https://github.com/react-native-community/upgrade-support/issues/30#issuecomment-608495255
After that the whole build started to work flawless.
Now I wanted to upgrade to 0.63.2 and now the React native and Flipper pods were moved to ‘…/node_modules/react-native/scripts/react_native_pods’ without any possibility to specify: :configuration => [‘Debug-dev’, ‘Release-dev’]
and now i get the same error:
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_FlipperKitNetworkPlugin", referenced from: objc-class-ref in AppDelegate.o "_OBJC_CLASS_$_SKIOSNetworkAdapter", referenced from: objc-class-ref in AppDelegate.o "_OBJC_CLASS_$_FlipperKitReactPlugin", referenced from: objc-class-ref in AppDelegate.o "_OBJC_CLASS_$_FKUserDefaultsPlugin", referenced from: objc-class-ref in AppDelegate.o "_OBJC_CLASS_$_FlipperKitLayoutPlugin", referenced from: objc-class-ref in AppDelegate.o "_OBJC_CLASS_$_SKDescriptorMapper", referenced from: objc-class-ref in AppDelegate.o "_OBJC_CLASS_$_FlipperClient", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Reproducible demo
n/a
Issue Analytics
- State:
- Created 3 years ago
- Reactions:10
- Comments:14
Top GitHub Comments
None of the above fixes worked for me. I have no idea if this is a good fix, but I changed the following in
AppDelegate.m
and it seems to have worked for me:to
I have tried upgrading to latest version of react, I still get the same error, I’m trying to build for multiple environments (local, staging, and prod) and I want to be able to install them all on the same device and be able to use them as if they are different apps, I’m following this guide on that http://blog.logicwind.com/adding-multiple-target/
but I got these errors
Here’s my Podfile