Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.59.10 to 0.62.2] Library not found for -lCocoaAsyncSocket #66

Open
vmarquet opened this issue Apr 26, 2020 · 19 comments
Open

[0.59.10 to 0.62.2] Library not found for -lCocoaAsyncSocket #66

vmarquet opened this issue Apr 26, 2020 · 19 comments

Comments

@vmarquet
Copy link

vmarquet commented Apr 26, 2020

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 #14 and #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)
@chawax
Copy link

chawax commented May 5, 2020

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

@vmarquet
Copy link
Author

vmarquet commented May 5, 2020

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

@chawax
Copy link

chawax commented May 5, 2020

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

@chawax
Copy link

chawax commented May 5, 2020

Maybe it could help : facebook/react-native#28483 (comment)

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

XCode is really a pain ...

@ketanvault
Copy link

This solved my problem - facebook/react-native#28483 (comment)

@lumberman
Copy link

Nothing of the above works for me :(

@lumberman
Copy link

lumberman commented May 19, 2020

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)"

@caiqueex
Copy link

same error to me :(

@levitomer
Copy link

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

@kumarparth380
Copy link

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.

@levitomer
Copy link

which one?

image

@kumarparth380
Copy link

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.

@levitomer
Copy link

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 :\

@lucasmotta
Copy link

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

@xbaos
Copy link

xbaos commented Sep 28, 2020

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

@snehadange
Copy link

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

@ayushmng
Copy link

ayushmng commented Feb 7, 2024

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.

@snehadange
Copy link

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 #66 (comment) this one

@ayushmng
Copy link

ayushmng commented Feb 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests