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.

After upgrading to 0.61.2 from 0.60.6 is throwing an XCode build error

See original GitHub issue

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.

Issue Analytics

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

github_iconTop GitHub Comments

13reactions
camposbrunocamposcommented, Oct 5, 2019

I’m facing same problem!

8reactions
culovcommented, Oct 5, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade from RN 0.60.6 to 0.61.2 throws ld: library not found for
And on Xcode, it throws that error but indicating it's on MyAppTests. I'm using the .xcworkspace and not .xproject file. (using CocoaPods). I ......
Read more >
After upgrading to Xcode 13.2.1, d… | Apple Developer Forums
Our app compiles for iOS 12 and runs in simulator, but crashes on a real device with the same error that OP posted....
Read more >
React Native App no longer builds … | Apple Developer Forums
My react native app previously built and ran on a simulator in xcode 11. However sine upgrading to xcode 12.5 i get the...
Read more >
Xcode 13.3 build "out of memory" | Apple Developer Forums
So I've disabled bitcode for that target: Build Settings -> Enable Bitcode = No. And that's it! After turning off bitcode, Xcode 13.3...
Read more >
Preview throwing error HumanReadab… - Apple Developer
The problem cropped up again, and I bit the bullet. In Xcode, I created a new project and copied all the source from...
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