question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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:
    @react-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 @executable_path/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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:8

github_iconTop GitHub Comments

51reactions
arnriucommented, Apr 3, 2020

@blumendorf You are absolutely right. I am using multiple targets and adapting configuration worked. Thank you ! 😊

In my Podfile, my targets:

project 'gotobridge',
  'Debug-dev' => :debug,
  'Release-dev' => :release,
  'Debug' => :debug,
  'Release' => :release

And so, my flipper pods :configuration:

def add_flipper_pods!
  version = '~> 0.35.0'
  pod 'FlipperKit', version, :configuration => ['Debug-dev', 'Release-dev']
  pod 'FlipperKit/FlipperKitLayoutPlugin', version, :configuration => ['Debug-dev', 'Release-dev']
  pod 'FlipperKit/SKIOSNetworkPlugin', version, :configuration => ['Debug-dev', 'Release-dev']
  pod 'FlipperKit/FlipperKitUserDefaultsPlugin', version, :configuration => ['Debug-dev', 'Release-dev']
  pod 'FlipperKit/FlipperKitReactPlugin', version, :configuration => ['Debug-dev', 'Release-dev']
end

Also, for the record, after I built my app, it crashed on launch with Thread 1: signal SIGABRT Searching a bit deeper, I found this message: This copy of libswiftCore.dylib requires an OS version prior to 12.2.0. I added a File.swift in my projects, and it was ok. But if I removed the file again, it crashed again. So, in xCode, I went to BuildSettings -> Linking -> runpath search path , and manually changed each build line to:

/usr/lib/swift
$(inherited)

And now it builds and starts fine, without the .swift file

12reactions
zanechuacommented, Oct 7, 2020

For those using multiple schemes and on 0.63, you can make the following change in your Podfile:

From

use_flipper!

To

use_flipper!(configurations: ['Debug', 'Local.Debug', 'Staging.Debug'])

The flipper pods were made configurable in https://github.com/facebook/react-native/pull/29074

Read more comments on GitHub >

github_iconTop Results From Across the Web

Undefined symbol: type metadata for Swift._StringObject.Variant
I always end up getting this linker error: Undefined symbols for architecture armv7: "type metadata for Swift.StringObject.
Read more >
error build: undefined symbol: _objc_class_$_adbmobile
0.61.5 -> 0.62 - Xcode error: Undefined symbol: _OBJC_CLASS_$_ ... Showing Recent Issues Build target gotobridge of project GotoBridge with configuration ...
Read more >
How to slove xcode build error 'Undefined symbols for ...
How can I fix this, please give me some ideas, I'm new to ios development. cpu: m1 pro. system: macOS12.3. xcode: 13.4. react...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found