weixin_39638309
weixin_39638309
2020-12-09 09:08

0.61.5 -> 0.62 - Xcode error: Undefined symbol: _OBJC_CLASS_$_FlipperKitNetworkPlugin

Environment


System:
    OS: macOS 10.15.4
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 682.91 MB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 13.12.0 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.4 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.9.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    Android SDK: Not Found
  IDEs:
    Android Studio: 3.6 AI-192.7142.36.36.6308749
    Xcode: 11.4/11E146 - /usr/bin/xcodebuild
  Languages:
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    -native-community/cli: ^4.5.1 => 4.5.1 
    react: 16.13.1 => 16.13.1 
    react-native: 0.62.0 => 0.62.0 
  npmGlobalPackages:
    *react-native*: Not Found

Upgrading version

0.61.5 -> 0.62

Description

After following upgrade-helper and #13 , I have this error in xcode. I also found this very similare issue in flipper repo, and tryied what they said, but it didn't help: https://github.com/facebook/flipper/issues/816

Undefined symbol: _OBJC_CLASS_$_FlipperKitNetworkPlugin Undefined symbol: _OBJC_CLASS_$_SKIOSNetworkAdapter Undefined symbol: _OBJC_CLASS_$_FlipperKitReactPlugin Undefined symbol: _OBJC_CLASS_$_FKUserDefaultsPlugin Undefined symbol: _OBJC_CLASS_$_FlipperKitLayoutPlugin Undefined symbol: _OBJC_CLASS_$_SKDescriptorMapper Undefined symbol: _OBJC_CLASS_$_FlipperClient

Transcript of first one:


Showing Recent Issues

Build target gotobridge of project GotoBridge with configuration Debug-dev

Ld /Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/Goto\ Bridge\ Dev.app/Goto\ Bridge\ Dev normal arm64 (in target 'gotobridge' from project 'GotoBridge')
    cd /Users/arnaud/Sites/gotobridge/ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios9.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphoneos -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/BVLinearGradient -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/CocoaAsyncSocket -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/DoubleConversion -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/FBReactNativeSpec -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/Flipper -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/Flipper-DoubleConversion -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/Flipper-Folly -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/Flipper-Glog -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/Flipper-PeerTalk -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/Flipper-RSocket -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/Folly -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/RCTTypeSafety -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/RNCAsyncStorage -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/RNDeviceInfo -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-Core -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-CoreModules -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-RCTAnimation -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-RCTBlob -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-RCTImage -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-RCTLinking -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-RCTNetwork -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-RCTSettings -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-RCTText -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-RCTVibration -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-cxxreact -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-jsi -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-jsiexecutor -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/React-jsinspector -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/ReactCommon -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/ReactNativeAudioToolkit -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/Yoga -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/YogaKit -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/glog -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/react-native-argine -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/react-native-blur -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/react-native-slider -L/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/react-native-webview -L/Users/arnaud/Sites/gotobridge/ios/Pods/CocoaLibEvent/lib -L/Users/arnaud/Sites/gotobridge/ios/Pods/OpenSSL-Universal/ios/lib -F/Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos -filelist /Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Intermediates.noindex/GotoBridge.build/Debug-dev-iphoneos/gotobridge.build/Objects-normal/arm64/Goto\ Bridge\ Dev.LinkFileList -Xlinker -rpath -Xlinker /Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Intermediates.noindex/GotoBridge.build/Debug-dev-iphoneos/gotobridge.build/Objects-normal/arm64/Goto\ Bridge\ Dev_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -ObjC -lBVLinearGradient -lCocoaAsyncSocket -lDoubleConversion -lFBReactNativeSpec -lFlipper -lFlipper-DoubleConversion -lFlipper-Folly -lFlipper-Glog -lFlipper-PeerTalk -lFlipper-RSocket -lFolly -lRCTTypeSafety -lRNCAsyncStorage -lRNDeviceInfo -lReact-Core -lReact-CoreModules -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReactCommon -lReactNativeAudioToolkit -lYoga -lYogaKit -lcrypto -levent -levent_core -levent_extra -levent_pthreads -lglog -lreact-native-argine -lreact-native-blur -lreact-native-slider -lreact-native-webview -lssl -lstdc++ -framework AudioToolbox -framework CFNetwork -framework Foundation -framework JavaScriptCore -framework MobileCoreServices -framework QuartzCore -framework Security -framework UIKit -ObjC -lc++ -lPods-gotobridge -framework AudioToolbox -Xlinker -dependency_info -Xlinker /Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Intermediates.noindex/GotoBridge.build/Debug-dev-iphoneos/gotobridge.build/Objects-normal/arm64/Goto\ Bridge\ Dev_dependency_info.dat -o /Users/arnaud/Library/Developer/Xcode/DerivedData/gotobridge-fsxpbshuzkjajbfxyztldgpsuqee/Build/Products/Debug-dev-iphoneos/Goto\ Bridge\ Dev.app/Goto\ Bridge\ Dev

Undefined symbols for architecture arm64:
  "_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 arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Reproducible demo

n/a

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

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

8条回答

为你推荐