react-native: After upgrading to 0.61.2 from 0.60.6 is throwing an XCode build error

I was normally working with 0.60.6 and after updating to 0.61.2, I could no longer build my project in XCode.

React Native version: 0.61.2

This is my current Podfile

platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

target 'MyApp' do
  # Pods for MyApp
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'

  pod 'React-ART', :path => '../node_modules/react-native/Libraries/ART'
  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'


  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  pod 'RNImageCropPicker', :path =>  '../node_modules/react-native-image-crop-picker'

  target 'MyAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

  use_native_modules!
end

target 'MyApp-tvOS' do
  # Pods for MyApp

  target 'MyApp-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

Which goes fine after doing pod install. But whenever I start building, it throws:

ld: library not found for -lReact

Weird thing is, it’s being thrown on the target Tests. In this case would be under MyAppTests.

Attempted everything I found so far, but nothing seemed to work. I don’t even have a proper stacktrace or real error here so I could kind of see where I can start looking for the real solution since not even the copied Transcript from XCode tells me why, unless I’m missing something:

Showing Recent Messages

Build target MyAppTests of project MyApp with configuration Debug

MkDir /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Products/Debug-iphoneos/MyApp.app/PlugIns/MyAppTests.xctest (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    /bin/mkdir -p /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Products/Debug-iphoneos/MyApp.app/PlugIns/MyAppTests.xctest

WriteAuxiliaryFile /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/all-product-headers.yaml (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    write-file /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/all-product-headers.yaml

WriteAuxiliaryFile /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-own-target-headers.hmap (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    write-file /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-own-target-headers.hmap

WriteAuxiliaryFile /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-project-headers.hmap (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    write-file /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-project-headers.hmap

WriteAuxiliaryFile /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests.hmap (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    write-file /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests.hmap

WriteAuxiliaryFile /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-generated-files.hmap (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    write-file /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-generated-files.hmap

WriteAuxiliaryFile /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-all-target-headers.hmap (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    write-file /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-all-target-headers.hmap

WriteAuxiliaryFile /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-all-non-framework-target-headers.hmap (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    write-file /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-all-non-framework-target-headers.hmap

WriteAuxiliaryFile /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Script-972CDF8C845DFAB49F442FF2.sh (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    write-file /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Script-972CDF8C845DFAB49F442FF2.sh

ProcessInfoPlistFile /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Products/Debug-iphoneos/MyApp.app/PlugIns/MyAppTests.xctest/Info.plist /Users/marian-mac/Documents/dev/myapp/ios/MyAppTests/Info.plist (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    builtin-infoPlistUtility /Users/marian-mac/Documents/dev/myapp/ios/MyAppTests/Info.plist -producttype com.apple.product-type.bundle.unit-test -expandbuildsettings -format binary -platform iphoneos -o /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Products/Debug-iphoneos/MyApp.app/PlugIns/MyAppTests.xctest/Info.plist

PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Script-972CDF8C845DFAB49F442FF2.sh (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    /bin/sh -c /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Script-972CDF8C845DFAB49F442FF2.sh

WriteAuxiliaryFile /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Objects-normal/armv7/MyAppTests.LinkFileList (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    write-file /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Objects-normal/armv7/MyAppTests.LinkFileList

WriteAuxiliaryFile /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Objects-normal/arm64/MyAppTests.LinkFileList (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    write-file /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Objects-normal/arm64/MyAppTests.LinkFileList

CompileC /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Objects-normal/arm64/MyAppTests.o /Users/marian-mac/Documents/dev/myapp/ios/MyAppTests/MyAppTests.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios9.0 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/marian-mac/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/marian-mac/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DDEBUG=1 -DSD_WEBP=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -index-store-path /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Index/DataStore -iquote /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-generated-files.hmap -I/Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-own-target-headers.hmap -I/Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-all-target-headers.hmap -iquote /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/MyAppTests-project-headers.hmap -iquote /Users/marian-mac/Documents/dev/myapp/ios/libwebp/src -I/Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Products/Debug-iphoneos/include -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/BVLinearGradient -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/DoubleConversion -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/FBLazyVector -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/FBReactNativeSpec -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/FBSDKCoreKit -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/FBSDKLoginKit -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/FBSDKShareKit -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/QBImagePickerController -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/RCTRequired -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/RCTTypeSafety -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/RNCAsyncStorage -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/RNFastImage -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/RNI18n -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/RNImageCropPicker -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/RNSVG -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/RNSentry -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/RNVectorIcons -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/RSKImageCropper -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/React-Core -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/React-RCTBlob -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/React-RCTText -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/React-cxxreact -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/React-jsi -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/React-jsinspector -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/ReactCommon -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/ReactNativeNavigation -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/SDWebImage -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/SDWebImageWebPCoder -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/Sentry -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/Yoga -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/glog -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/libwebp -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/lottie-react-native -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/react-native-blur -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/react-native-fbsdk -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/react-native-geolocation -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/react-native-slider -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/react-native-splash-screen -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Public/react-native-video -I/Users/marian-mac/Documents/dev/myapp/ios/Pods/Headers/Private/React-Core -I/Users/marian-mac/Documents/dev/myapp/node_modules/react-native-sentry/ios -I/Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/DerivedSources-normal/arm64 -I/Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/DerivedSources/arm64 -I/Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/DerivedSources -F/Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Products/Debug-iphoneos -iframework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -fmodule-map-file=/Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Products/Debug-iphoneos/lottie-ios/Lottie.modulemap -fmodule-map-file=/Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Products/Debug-iphoneos/lottie-react-native/lottie_react_native.modulemap -MMD -MT dependencies -MF /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Objects-normal/arm64/MyAppTests.d --serialize-diagnostics /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Objects-normal/arm64/MyAppTests.dia -c /Users/marian-mac/Documents/dev/myapp/ios/MyAppTests/MyAppTests.m -o /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Objects-normal/arm64/MyAppTests.o

Ld /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Objects-normal/arm64/Binary/MyAppTests normal arm64 (in target 'MyAppTests' from project 'MyApp')
    cd /Users/marian-mac/Documents/dev/myapp/ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios9.0 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk -L/Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Products/Debug-iphoneos -F/Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Products/Debug-iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -filelist /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Objects-normal/arm64/MyAppTests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -bundle_loader /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Products/Debug-iphoneos/MyApp.app/MyApp -Xlinker -object_path_lto -Xlinker /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Objects-normal/arm64/MyAppTests_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -ObjC -lc++ -lc++ -lstdc++ -lz -framework CoreGraphics -framework Foundation -framework ImageIO -framework JavaScriptCore -framework Photos -framework QuartzCore -framework UIKit -framework XCTest -lReact -lPods-MyAppTests -Xlinker -dependency_info -Xlinker /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Objects-normal/arm64/MyAppTests_dependency_info.dat -o /Users/marian-mac/Library/Developer/Xcode/DerivedData/MyApp-gxbgrgsmsjkylfamzmwfzfngkbid/Build/Intermediates.noindex/MyApp.build/Debug-iphoneos/MyAppTests.build/Objects-normal/arm64/Binary/MyAppTests

ld: library not found for -lReact
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Describe what you expected to happen: It should compile without any errors.

 "react": "16.9.0",
 "react-native": "0.61.2",

Followed this as a guideline to transition to 0.61.2. I used it also from 0.59 to 0.60 without any issues but this time is throwing this and I couldn’t find much help anywhere.

Any help would be very appreciated.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 18 (1 by maintainers)

Most upvoted comments

I’m facing same problem!

I had a loose libReact.a file “Link Binary With Libraries” section under Build Phases. Removing this seems to have fixed the problem for me.

@msqar Check the Tests target “Link Binary With Libraries” for libReact.a too. I had to remove it from both places.

Do you use Tests target? It’s not really a fix but you can remove it from Xcode project and podfile if you don’t need it.