facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.47k stars 24.26k forks source link

Library 'CocoaAsyncSocket' not found #42890

Closed gavrilikhin-d closed 7 months ago

gavrilikhin-d commented 7 months ago

Description

Unable to build a reproducer in XCode 15.2 on RN 0.73.3 (default version for repro for now) and on new RN 0.73.4

Steps to reproduce

  1. Clone repo
  2. Try to build iOS app in XCode

React Native Version

0.73.4

Affected Platforms

Runtime - iOS, Build - MacOS

Output of npx react-native info

System:
  OS: macOS 14.2.1
  CPU: (8) arm64 Apple M1
  Memory: 171.09 MB / 8.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 21.4.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 1.22.21
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.2.4
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2023.12.04.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK:
    API Levels:
      - "28"
      - "30"
      - "31"
      - "33"
      - "33"
      - "34"
    Build Tools:
      - 30.0.3
      - 31.0.0
      - 33.0.0
      - 33.0.1
      - 33.0.2
      - 34.0.0
    System Images:
      - android-30 | Google Play Intel x86 Atom
      - android-31 | Google Play ARM 64 v8a
      - android-34 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.10406996
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.1
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true

Stacktrace or Logs

Showing All Errors Only

Build target ReproducerApp of project ReproducerApp with configuration Debug
warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ReproducerApp' from project 'ReproducerApp')

Ld /Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/ReproducerApp.app/ReproducerApp normal (in target 'ReproducerApp' from project 'ReproducerApp')
    cd /Users/gavrilikhin_d/Code/test/rn-reproducer/ReproducerApp/ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -Xlinker -reproducible -target arm64-apple-ios13.4 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk -O0 -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.2.sdk/usr/lib/swift -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/CocoaAsyncSocket -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/DoubleConversion -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/Flipper -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/Flipper-Boost-iOSX -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/Flipper-Fmt -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/Flipper-Folly -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/Flipper-PeerTalk -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/FlipperKit -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/RCT-Folly -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/RCTTypeSafety -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-Codegen -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-Core -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-CoreModules -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-Fabric -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-FabricImage -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-ImageManager -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-Mapbuffer -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-NativeModulesApple -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTAnimation -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTAppDelegate -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTBlob -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTFabric -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTImage -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTLinking -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTNetwork -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTSettings -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTText -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTVibration -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-cxxreact -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-debug -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-graphics -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-hermes -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-jserrorhandler -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-jsi -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-jsiexecutor -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-jsinspector -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-logger -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-nativeconfig -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-perflogger -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-rendererdebug -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-runtimescheduler -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-utils -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/ReactCommon -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/SocketRocket -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/Yoga -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/fmt -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/glog -L/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/libevent -F/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -F/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos -F/Users/gavrilikhin_d/Code/test/rn-reproducer/ReproducerApp/ios/Pods/Flipper-DoubleConversion/Frameworks -F/Users/gavrilikhin_d/Code/test/rn-reproducer/ReproducerApp/ios/Pods/Flipper-Glog/Frameworks -F/Users/gavrilikhin_d/Code/test/rn-reproducer/ReproducerApp/ios/Pods/OpenSSL-Universal/Frameworks -F/Users/gavrilikhin_d/Code/test/rn-reproducer/ReproducerApp/ios/Pods/hermes-engine/destroot/Library/Frameworks/universal -F/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/Flipper-DoubleConversion -F/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/Flipper-Glog -F/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/OpenSSL-Universal -F/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/hermes-engine/Pre-built -filelist /Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Intermediates.noindex/ReproducerApp.build/Debug-iphoneos/ReproducerApp.build/Objects-normal/arm64/ReproducerApp.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Intermediates.noindex/ReproducerApp.build/Debug-iphoneos/ReproducerApp.build/Objects-normal/arm64/ReproducerApp_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -stdlib\=libc++ -fobjc-arc -fobjc-link-runtime -ObjC -lCocoaAsyncSocket -lDoubleConversion -lFlipper -lFlipper-Boost-iOSX -lFlipper-Fmt -lFlipper-Folly -lFlipper-PeerTalk -lFlipperKit -lRCT-Folly -lRCTTypeSafety -lReact-Codegen -lReact-Core -lReact-CoreModules -lReact-Fabric -lReact-FabricImage -lReact-ImageManager -lReact-Mapbuffer -lReact-NativeModulesApple -lReact-RCTAnimation -lReact-RCTAppDelegate -lReact-RCTBlob -lReact-RCTFabric -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-debug -lReact-graphics -lReact-hermes -lReact-jserrorhandler -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReact-logger -lReact-nativeconfig -lReact-perflogger -lReact-rendererdebug -lReact-runtimescheduler -lReact-utils -lReactCommon -lSocketRocket -lYoga -lc++ -lc++abi -lfmt -lglog -licucore -llibevent -lstdc++ -framework Accelerate -framework AudioToolbox -framework CFNetwork -framework JavaScriptCore -framework MobileCoreServices -framework OpenSSL -framework Security -framework UIKit -framework double-conversion -framework glog -framework hermes -ObjC -lc++ -lPods-ReproducerApp -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Intermediates.noindex/ReproducerApp.build/Debug-iphoneos/ReproducerApp.build/Objects-normal/arm64/ReproducerApp_dependency_info.dat -o /Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/ReproducerApp.app/ReproducerApp

ld: warning: ignoring duplicate libraries: '-lc++'
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/CocoaAsyncSocket' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/DoubleConversion' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/Flipper' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/Flipper-Boost-iOSX' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/Flipper-Fmt' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/Flipper-Folly' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/Flipper-PeerTalk' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/FlipperKit' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/RCT-Folly' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/RCTTypeSafety' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-Codegen' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-Core' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-CoreModules' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-Fabric' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-FabricImage' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-ImageManager' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-Mapbuffer' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-NativeModulesApple' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTAnimation' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTAppDelegate' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTBlob' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTFabric' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTImage' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTLinking' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTNetwork' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTSettings' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTText' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-RCTVibration' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-cxxreact' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-debug' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-graphics' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-hermes' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-jserrorhandler' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-jsi' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-jsiexecutor' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-jsinspector' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-logger' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-nativeconfig' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-perflogger' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-rendererdebug' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-runtimescheduler' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/React-utils' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/ReactCommon' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/SocketRocket' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/Yoga' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/fmt' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/glog' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/libevent' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/Flipper-DoubleConversion' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/Flipper-Glog' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/OpenSSL-Universal' not found
ld: warning: search path '/Users/gavrilikhin_d/Library/Developer/Xcode/DerivedData/ReproducerApp-akhncblflqfcfqhcezbureckhnmh/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/hermes-engine/Pre-built' not found
ld: library 'CocoaAsyncSocket' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Library 'CocoaAsyncSocket' not found

Linker command failed with exit code 1 (use -v to see invocation)

Build failed    06.02.2024, 14:31    1.4 seconds


### Reproducer

https://github.com/gavrilikhin-d/rn-reproducer

### Screenshots and Videos

<img width="642" alt="image" src="https://github.com/facebook/react-native/assets/75179902/5dbdf0f9-b8e7-463c-a959-618c91e0caa0">
cortinico commented 7 months ago

I've tested it locally and cannot reproduce. Make sure you ran:

cd ReproducerApp && yarn && cd ios && bundle install && bundle exec pod install

It works well on my machine:

bundle install && bundle exec pod install
Using rexml 3.2.6
Using CFPropertyList 3.0.6
Using concurrent-ruby 1.2.3
Using i18n 1.14.1
Using minitest 5.22.0
Using tzinfo 2.0.6
Using activesupport 7.0.8
Using public_suffix 4.0.7
Using addressable 2.8.6
Using httpclient 2.8.3
Using json 2.7.1
Using algoliasearch 1.27.5
Using atomos 0.1.3
Using bundler 2.3.7
Using claide 1.1.0
Using fuzzy_match 2.0.4
Using nap 1.1.0
Using netrc 0.11.0
Using ffi 1.16.3
Using ethon 0.16.0
Using typhoeus 1.4.1
Using cocoapods-core 1.14.3
Using cocoapods-deintegrate 1.0.5
Using cocoapods-downloader 2.1
Using cocoapods-plugins 1.0.0
Using cocoapods-search 1.0.1
Using cocoapods-trunk 1.6.0
Using cocoapods-try 1.2.0
Using colored2 3.1.2
Using escape 0.0.4
Using fourflusher 2.3.1
Using gh_inspector 1.1.3
Using molinillo 0.8.0
Using ruby-macho 2.5.1
Using nanaimo 0.3.0
Using xcodeproj 1.24.0
Using cocoapods 1.14.3
Bundle complete! 2 Gemfile dependencies, 37 gems now installed.
Bundled gems are installed into `../vendor/bundle`
Framework build type is static library
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
[Codegen] generating an empty RCTThirdPartyFabricComponentsProvider
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
[Codegen] Found FBReactNativeSpec
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
[Codegen] Found rncore
Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Fetching podspec for `hermes-engine` from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`
[Hermes] Using release tarball from URL: https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.73.3/react-native-artifacts-0.73.3-hermes-ios-debug.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 16.2M  100 16.2M    0     0  27.6M      0 --:--:-- --:--:-- --:--:-- 27.6M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12.3M  100 12.3M    0     0  26.1M      0 --:--:-- --:--:-- --:--:-- 26.1M
Downloading dependencies
Installing CocoaAsyncSocket (7.6.5)
Installing DoubleConversion (1.1.6)
Installing FBLazyVector (0.73.3)
Installing FBReactNativeSpec (0.73.3)
Installing Flipper (0.201.0)
Installing Flipper-Boost-iOSX (1.76.0.1.11)
Installing Flipper-DoubleConversion (3.2.0.1)
Installing Flipper-Fmt (7.1.7)
Installing Flipper-Folly (2.6.10)
Installing Flipper-Glog (0.5.0.5)
Installing Flipper-PeerTalk (0.0.4)
Installing FlipperKit (0.201.0)
Installing OpenSSL-Universal (1.1.1100)
Installing RCT-Folly (2022.05.16.00)
Installing RCTRequired (0.73.3)
Installing RCTTypeSafety (0.73.3)
Installing React (0.73.3)
Installing React-Codegen (0.73.3)
Installing React-Core (0.73.3)
Installing React-CoreModules (0.73.3)
Installing React-Fabric (0.73.3)
Installing React-FabricImage (0.73.3)
Installing React-ImageManager (0.73.3)
Installing React-Mapbuffer (0.73.3)
Installing React-NativeModulesApple (0.73.3)
Installing React-RCTActionSheet (0.73.3)
Installing React-RCTAnimation (0.73.3)
Installing React-RCTAppDelegate (0.73.3)
Installing React-RCTBlob (0.73.3)
Installing React-RCTFabric (0.73.3)
Installing React-RCTImage (0.73.3)
Installing React-RCTLinking (0.73.3)
Installing React-RCTNetwork (0.73.3)
Installing React-RCTSettings (0.73.3)
Installing React-RCTText (0.73.3)
Installing React-RCTVibration (0.73.3)
Installing React-callinvoker (0.73.3)
Installing React-cxxreact (0.73.3)
Installing React-debug (0.73.3)
Installing React-graphics (0.73.3)
Installing React-hermes (0.73.3)
Installing React-jserrorhandler (0.73.3)
Installing React-jsi (0.73.3)
Installing React-jsiexecutor (0.73.3)
Installing React-jsinspector (0.73.3)
Installing React-logger (0.73.3)
Installing React-nativeconfig (0.73.3)
Installing React-perflogger (0.73.3)
Installing React-rendererdebug (0.73.3)
Installing React-rncore (0.73.3)
Installing React-runtimeexecutor (0.73.3)
Installing React-runtimescheduler (0.73.3)
Installing React-utils (0.73.3)
Installing ReactCommon (0.73.3)
Installing SocketRocket (0.6.1)
Installing Yoga (1.14.0)
Installing boost (1.83.0)
Installing fmt (6.2.1)
Installing glog (0.3.5)
Installing hermes-engine (0.73.3)
Installing libevent (2.1.12)
Generating Pods project
Setting USE_HERMES build settings
Setting REACT_NATIVE build settings
Setting CLANG_CXX_LANGUAGE_STANDARD to c++20 on /Users/ncor/pg/rn-reproducer/ReproducerApp/ios/ReproducerApp.xcodeproj
Pod install took 24 [s] to run
Integrating client project
Pod installation complete! There are 73 dependencies from the Podfile and 61 total pods installed.

[!] hermes-engine has added 1 script phase. Please inspect before executing a build. See `https://guides.cocoapods.org/syntax/podspec.html#script_phases` for more information.

It's also green on the reproducer CI: https://github.com/gavrilikhin-d/rn-reproducer/actions/runs/7798993607/job/21268828510

gavrilikhin-d commented 7 months ago

What is bundle?

I run: npm i cd ios pod install

On Tue, Feb 6, 2024, 17:58 Nicola Corti @.***> wrote:

I've tested it locally and cannot reproduce. Make sure you ran:

cd ReproducerApp && yarn && cd ios && bundle install && bundle exec pod install

It works well on my machine:

bundle install && bundle exec pod install Using rexml 3.2.6 Using CFPropertyList 3.0.6 Using concurrent-ruby 1.2.3 Using i18n 1.14.1 Using minitest 5.22.0 Using tzinfo 2.0.6 Using activesupport 7.0.8 Using public_suffix 4.0.7 Using addressable 2.8.6 Using httpclient 2.8.3 Using json 2.7.1 Using algoliasearch 1.27.5 Using atomos 0.1.3 Using bundler 2.3.7 Using claide 1.1.0 Using fuzzy_match 2.0.4 Using nap 1.1.0 Using netrc 0.11.0 Using ffi 1.16.3 Using ethon 0.16.0 Using typhoeus 1.4.1 Using cocoapods-core 1.14.3 Using cocoapods-deintegrate 1.0.5 Using cocoapods-downloader 2.1 Using cocoapods-plugins 1.0.0 Using cocoapods-search 1.0.1 Using cocoapods-trunk 1.6.0 Using cocoapods-try 1.2.0 Using colored2 3.1.2 Using escape 0.0.4 Using fourflusher 2.3.1 Using gh_inspector 1.1.3 Using molinillo 0.8.0 Using ruby-macho 2.5.1 Using nanaimo 0.3.0 Using xcodeproj 1.24.0 Using cocoapods 1.14.3 Bundle complete! 2 Gemfile dependencies, 37 gems now installed. Bundled gems are installed into ../vendor/bundle Framework build type is static library [Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json [Codegen] generating an empty RCTThirdPartyFabricComponentsProvider Analyzing dependencies Fetching podspec for DoubleConversion from ../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec [Codegen] Found FBReactNativeSpec Fetching podspec for RCT-Folly from ../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec [Codegen] Found rncore Fetching podspec for boost from ../node_modules/react-native/third-party-podspecs/boost.podspec Fetching podspec for glog from ../node_modules/react-native/third-party-podspecs/glog.podspec Fetching podspec for hermes-engine from ../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec [Hermes] Using release tarball from URL: https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.73.3/react-native-artifacts-0.73.3-hermes-ios-debug.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 16.2M 100 16.2M 0 0 27.6M 0 --:--:-- --:--:-- --:--:-- 27.6M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 12.3M 100 12.3M 0 0 26.1M 0 --:--:-- --:--:-- --:--:-- 26.1M Downloading dependencies Installing CocoaAsyncSocket (7.6.5) Installing DoubleConversion (1.1.6) Installing FBLazyVector (0.73.3) Installing FBReactNativeSpec (0.73.3) Installing Flipper (0.201.0) Installing Flipper-Boost-iOSX (1.76.0.1.11) Installing Flipper-DoubleConversion (3.2.0.1) Installing Flipper-Fmt (7.1.7) Installing Flipper-Folly (2.6.10) Installing Flipper-Glog (0.5.0.5) Installing Flipper-PeerTalk (0.0.4) Installing FlipperKit (0.201.0) Installing OpenSSL-Universal (1.1.1100) Installing RCT-Folly (2022.05.16.00) Installing RCTRequired (0.73.3) Installing RCTTypeSafety (0.73.3) Installing React (0.73.3) Installing React-Codegen (0.73.3) Installing React-Core (0.73.3) Installing React-CoreModules (0.73.3) Installing React-Fabric (0.73.3) Installing React-FabricImage (0.73.3) Installing React-ImageManager (0.73.3) Installing React-Mapbuffer (0.73.3) Installing React-NativeModulesApple (0.73.3) Installing React-RCTActionSheet (0.73.3) Installing React-RCTAnimation (0.73.3) Installing React-RCTAppDelegate (0.73.3) Installing React-RCTBlob (0.73.3) Installing React-RCTFabric (0.73.3) Installing React-RCTImage (0.73.3) Installing React-RCTLinking (0.73.3) Installing React-RCTNetwork (0.73.3) Installing React-RCTSettings (0.73.3) Installing React-RCTText (0.73.3) Installing React-RCTVibration (0.73.3) Installing React-callinvoker (0.73.3) Installing React-cxxreact (0.73.3) Installing React-debug (0.73.3) Installing React-graphics (0.73.3) Installing React-hermes (0.73.3) Installing React-jserrorhandler (0.73.3) Installing React-jsi (0.73.3) Installing React-jsiexecutor (0.73.3) Installing React-jsinspector (0.73.3) Installing React-logger (0.73.3) Installing React-nativeconfig (0.73.3) Installing React-perflogger (0.73.3) Installing React-rendererdebug (0.73.3) Installing React-rncore (0.73.3) Installing React-runtimeexecutor (0.73.3) Installing React-runtimescheduler (0.73.3) Installing React-utils (0.73.3) Installing ReactCommon (0.73.3) Installing SocketRocket (0.6.1) Installing Yoga (1.14.0) Installing boost (1.83.0) Installing fmt (6.2.1) Installing glog (0.3.5) Installing hermes-engine (0.73.3) Installing libevent (2.1.12) Generating Pods project Setting USE_HERMES build settings Setting REACT_NATIVE build settings Setting CLANG_CXX_LANGUAGE_STANDARD to c++20 on /Users/ncor/pg/rn-reproducer/ReproducerApp/ios/ReproducerApp.xcodeproj Pod install took 24 [s] to run Integrating client project Pod installation complete! There are 73 dependencies from the Podfile and 61 total pods installed.

[!] hermes-engine has added 1 script phase. Please inspect before executing a build. See https://guides.cocoapods.org/syntax/podspec.html#script_phases for more information.

It's also green on the reproducer CI:

https://github.com/gavrilikhin-d/rn-reproducer/actions/runs/7798993607/job/21268828510

— Reply to this email directly, view it on GitHub https://github.com/facebook/react-native/issues/42890#issuecomment-1929962826, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR5SO7QYUUUNN6HJYTRLHLLYSJAIBAVCNFSM6AAAAABC32JQVSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRZHE3DEOBSGY . You are receiving this because you authored the thread.Message ID: @.***>

cortinico commented 7 months ago

Please follow the instructions on this page https://reactnative.dev/docs/environment-setup?platform=ios#creating-a-new-application

saikats5 commented 7 months ago

I am also facing the same issue

gavrilikhin-d commented 7 months ago

By the way, CI itself uses pod install without bundle.

gavrilikhin-d commented 7 months ago

Figured out the issue!

I have opened ReproducerApp.xcodeproj instead of ReproducerApp.xcworkspace in xcode

saikats5 commented 7 months ago

I have able to fix the issue by overriding the default xcode ruby version which can be done some ruby installer, I can't remember the reference from where I got the fix, but go search for the ios ruby version upgrade

RayanAbid commented 7 months ago

Figured out the issue!

I have opened ReproducerApp.xcodeproj instead of ReproducerApp.xcworkspace in xcode

This fixed it for me.

Thanks @gavrilikhin-d

Malwaremamu commented 6 months ago

I followed the steps and did the pod install but still my project is failing to load on iOS. I tried running xcodeProj from xcode but I am getting errors in Xcode. Build deployment is at 15.0

image

yarn ios after pod install

image
mettyoung commented 6 months ago

I also have the same issue. Why is it very hard to run react-native? I've already spent two days.

DogaGencerOSF commented 6 months ago

Figured out the issue!

I have opened ReproducerApp.xcodeproj instead of ReproducerApp.xcworkspace in xcode

doing the exact opposite of this fixed my issue 🥂

Malwaremamu commented 6 months ago

I did few things to run the project through terminal.

First: Check for the any parent folder where my project is located and removed SPACE in between the folder names. Ex: In my case -> I have a folder "React Projects" renamed to "ReactProjects"

Second: In iOS folder -> Removed Pods and build folder and .xcworkspace. cleared derived data from Xcode (Run .xcworkspace cuz you have used pods) and clean build folder and close the Xcode. Terminal from iOS folder -> pods install

Go the project folder in terminal -> npm run ios or if you have installed Yarn -> yarn ios

It should fix the issue. Mostly the react library have some issues with finding folder with spaces is what I am thinking.

anchoretics commented 5 months ago

Figured out the issue!

I have opened ReproducerApp.xcodeproj instead of ReproducerApp.xcworkspace in xcode

me too,tks

m31527 commented 2 weeks ago

Figured out the issue!

I have opened ReproducerApp.xcodeproj instead of ReproducerApp.xcworkspace in xcode

me too, thank for all. 💯