weixin_39711914
weixin_39711914
2020-12-09 13:28

0.62.2 -> 0.63.2 - Xcode error: Undefined symbol: _OBJC_CLASS_$_FlipperKitNetworkPlugin

Environment

System: OS: macOS 10.15.6 CPU: (8) x64 Intel(R) Core(TM) 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: -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

该提问来源于开源项目:react-native-community/upgrade-support

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

11条回答

为你推荐