upgrade-support icon indicating copy to clipboard operation
upgrade-support copied to clipboard

[0.59.10 to 0.62.2] Library not found for -lCocoaAsyncSocket

Open vmarquet opened this issue 4 years ago • 19 comments

Environment

$ ./node_modules/.bin/react-native info
info Fetching system and libraries information...
System:
    OS: macOS Mojave 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Memory: 54.12 MB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 12.11.1 - ~/.nvm/versions/node/v12.11.1/bin/node
    Yarn: 1.17.3 - /usr/local/bin/yarn
    npm: 6.11.3 - ~/.nvm/versions/node/v12.11.1/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.8.4 - /Users/vincent/.rvm/gems/ruby-2.5.1/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 23, 24, 26, 27, 28
      Build Tools: 23.0.1, 25.0.2, 26.0.2, 26.0.3, 27.0.0, 27.0.3, 28.0.3
      System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom_64, android-24 | Google APIs Intel x86 Atom_64, android-24 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 3.4 AI-183.6156.11.34.5692245
    Xcode: 11.3/11C29 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_60 - /usr/bin/javac
    Python: 2.7.16 - /usr/local/bin/python
  npmPackages:
    @react-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

Description

I followed all instructions in https://github.com/react-native-community/upgrade-support/issues/14 and https://github.com/react-native-community/upgrade-support/issues/13 (thanks for these guides btw), and I get a build error:

Ld /Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/myproject.app/myproject normal x86_64
    cd /Users/vincent/Projets/myproject-mobile/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios9.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -L/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator -L\"\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/DoubleConversion\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/FBReactNativeSpec\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Flipper\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Flipper-DoubleConversion\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Flipper-Folly\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Flipper-Glog\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Flipper-PeerTalk\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Flipper-RSocket\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/FlipperKit\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Folly\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RCTTypeSafety\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNBackgroundFetch\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNDeviceInfo\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNFS\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNGestureHandler\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNI18n\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNLocalize\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNSentry\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNSound\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-Core\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-CoreModules\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTAnimation\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTBlob\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTImage\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTLinking\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTNetwork\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTSettings\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTText\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTVibration\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-cxxreact\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-jsi\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-jsiexecutor\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-jsinspector\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/ReactCommon\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Sentry\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Yoga\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/YogaKit\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/glog\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/react-native-cameraroll\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/react-native-netinfo\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/react-native-slider\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/react-native-sqlite-storage\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/react-native-static-server\"\ \"/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/react-native-webview\"\ \"/Users/vincent/Projets/myproject-mobile/ios/Pods/CocoaLibEvent/lib\"\ \"/Users/vincent/Projets/myproject-mobile/ios/Pods/OpenSSL-Universal/ios/lib\" -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -F/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator -F../node_modules/react-native-background-fetch/ios -F../node_modules/react-native-background-fetch/ios/RNBackgroundFetch -filelist /Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Intermediates.noindex/myproject.build/Debug-iphonesimulator/myproject.build/Objects-normal/x86_64/myproject.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -object_path_lto -Xlinker /Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Intermediates.noindex/myproject.build/Debug-iphonesimulator/myproject.build/Objects-normal/x86_64/myproject_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lCocoaAsyncSocket -lDoubleConversion -lFBReactNativeSpec -lFlipper -lFlipper-DoubleConversion -lFlipper-Folly -lFlipper-Glog -lFlipper-PeerTalk -lFlipper-RSocket -lFlipperKit -lFolly -lRCTTypeSafety -lRNBackgroundFetch -lRNDeviceInfo -lRNFS -lRNGestureHandler -lRNI18n -lRNLocalize -lRNSentry -lRNSound -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 -lSentry -lYoga -lYogaKit -lc++ -lcrypto -levent -levent_core -levent_extra -levent_pthreads -lglog -lreact-native-cameraroll -lreact-native-netinfo -lreact-native-slider -lreact-native-sqlite-storage -lreact-native-static-server -lreact-native-webview -lsqlite3 -lssl -lstdc++ -lz -framework AudioToolbox -framework CFNetwork -framework Foundation -framework JavaScriptCore -framework MobileCoreServices -framework Security -framework TSBackgroundFetch -framework UIKit -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Intermediates.noindex/myproject.build/Debug-iphonesimulator/myproject.build/myproject.app-Simulated.xcent -framework JavaScriptCore -lRCTPushNotification -lRNDeviceInfo -lRNI18n -framework TSBackgroundFetch -lPods-myproject -lz -Xlinker -dependency_info -Xlinker /Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Intermediates.noindex/myproject.build/Debug-iphonesimulator/myproject.build/Objects-normal/x86_64/myproject_dependency_info.dat -o /Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/myproject.app/myproject

ld: warning: directory not found for option '-L"" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/DoubleConversion" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/FBReactNativeSpec" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Flipper" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Flipper-DoubleConversion" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Flipper-Folly" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Flipper-Glog" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Flipper-PeerTalk" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Flipper-RSocket" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/FlipperKit" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Folly" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RCTTypeSafety" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNBackgroundFetch" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNDeviceInfo" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNFS" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNGestureHandler" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNI18n" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNLocalize" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNSentry" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/RNSound" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-Core" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-CoreModules" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTAnimation" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTBlob" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTImage" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTLinking" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTNetwork" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTSettings" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTText" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-RCTVibration" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-cxxreact" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-jsi" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-jsiexecutor" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/React-jsinspector" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/ReactCommon" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Sentry" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/Yoga" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/YogaKit" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/glog" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/react-native-cameraroll" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/react-native-netinfo" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/react-native-slider" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/react-native-sqlite-storage" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/react-native-static-server" "/Users/vincent/Library/Developer/Xcode/DerivedData/myproject-chcyphcsxklmejbgcaennhctwkux/Build/Products/Debug-iphonesimulator/react-native-webview" "/Users/vincent/Projets/myproject-mobile/ios/Pods/CocoaLibEvent/lib" "/Users/vincent/Projets/myproject-mobile/ios/Pods/OpenSSL-Universal/ios/lib"'
ld: library not found for -lCocoaAsyncSocket
clang: error: linker command failed with exit code 1 (use -v to see invocation)

vmarquet avatar Apr 26 '20 17:04 vmarquet

I have the same problem, but migrating from RN 0.61.5. Did you find a solution ?

chawax avatar May 05 '20 15:05 chawax

@chawax No. I tried everything I could think of, it would never compile. I've stopped trying.

vmarquet avatar May 05 '20 15:05 vmarquet

Ok, thank you. I will tell you if I find any solution.

chawax avatar May 05 '20 15:05 chawax

Maybe it could help : https://github.com/facebook/react-native/issues/28483#issuecomment-610839293

You have to remove the quotes in search paths. Anyway I went further but had other problems.

XCode is really a pain ...

chawax avatar May 05 '20 15:05 chawax

This solved my problem - https://github.com/facebook/react-native/issues/28483#issuecomment-610839293

ketanvault avatar May 15 '20 13:05 ketanvault

Nothing of the above works for me :(

lumberman avatar May 16 '20 16:05 lumberman

Screen Shot on 2020-05-19 at 00:34:17

Found solution by setting a Search Path for TARGETS as well not only for PROJECT. Also removed double quotes from paths like "$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)"

lumberman avatar May 19 '20 03:05 lumberman

same error to me :(

caiqueex avatar Jul 16 '20 01:07 caiqueex

Same here

Btw, I've used the new build system and it failed with tons off errors Screen Shot 2020-08-05 at 10 47 10

levitomer avatar Aug 05 '20 07:08 levitomer

Same here

Btw, I've used the new build system and it failed with tons off errors Screen Shot 2020-08-05 at 10 47 10

For this you have to remove the duplicate fonts that you have in Copy Bundle Resources under Build Phases. So if you have any custom fonts added leave that and remove rest from there.

kumarparth380 avatar Aug 16 '20 12:08 kumarparth380

which one?

image

levitomer avatar Aug 17 '20 15:08 levitomer

which one?

image

@levitomer Try to remove all fonts from Copy Bundle Resources and build again. If you're using latest react-native version you need not to define it under there. It might be there because you are using react-native-vector-icon.

kumarparth380 avatar Aug 17 '20 15:08 kumarparth380

which one? image

@levitomer Try to remove all fonts from Copy Bundle Resources and build again. If you're using latest react-native version you need not to define it under there. It might be there because you are using react-native-vector-icon.

I've switched to the back to the legacy build system and cleared the cache about 5 times. And it's gone :\

levitomer avatar Aug 23 '20 07:08 levitomer

I am having the same issue when archiving the app on React Native 0.63.2.

lucasmotta avatar Aug 25 '20 17:08 lucasmotta

Screen Shot on 2020-05-19 at 00:34:17

Found solution by setting a Search Path for TARGETS as well not only for PROJECT. Also removed double quotes from paths like "$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)" thank you, it help me

xbaos avatar Sep 28 '20 11:09 xbaos

Screen Shot on 2020-05-19 at 00:34:17 Found solution by setting a Search Path for TARGETS as well not only for PROJECT. Also removed double quotes from paths like "$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)" thank you, it help me

Thanks i add this in Library Search paths you save my day

snehadange avatar Feb 18 '21 07:02 snehadange

Has anyone resolved the issue? I tried adding $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME) $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) $(inherited) to Library Search Paths still not resolved but couldn't find to change the legacy system to the new build system on XCode v15.2.

Please help me out with it.

ayushmng avatar Feb 07 '24 10:02 ayushmng

Has anyone resolved the issue? I tried adding $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME) $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) $(inherited) to Library Search Paths still not resolved but couldn't find to change the legacy system to the new build system as I couldn't find it in XCode v15.2.

Please help me out with it.

check https://github.com/react-native-community/upgrade-support/issues/66#issuecomment-781114249 this one

snehadange avatar Feb 07 '24 10:02 snehadange

Can you help me edit the values I have added for both debug and release inside Library Search Paths @snehadange ?

ayushmng avatar Feb 07 '24 14:02 ayushmng