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

Library not found for -lCocoaAsyncSocket after upgrading from 0.60.5 to 0.62 #50

Closed
YahiaJabeur opened this issue Apr 10, 2020 · 7 comments

Comments

@YahiaJabeur
Copy link

Environment

System:
OS: macOS 10.15.4
CPU: (4) x64 Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz
Memory: 726.21 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.9.1 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 23.0.1, 26.0.2, 27.0.3, 28.0.2, 28.0.3
System Images: android-28 | Android TV Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom_64
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 11.4/11E146 - /usr/bin/xcodebuild
Languages:
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.0 => 0.62.0
npmGlobalPackages:
react-native: Not Found

Upgrading version

0.62.0 from 0.61.5

Description

Library not found for -lCocoaAsyncSocket

Screen Shot 2020-04-10 at 16 11 05

After upgrading to rn 0.62 and doing the steps from https://react-native-community.github.io/upgrade-helper
I received this error. any idea how to fix ??

@cinder92
Copy link

@YahiaJabeur how did you fix the issue?

@YahiaJabeur
Copy link
Author

@cinder92
I applied this solution facebook/react-native#28483 (comment)

This issue contains more discussion about the error #36

Let me know if you need more help ;)

@ketanvault
Copy link

I'm having the same issue as above. But none of the above solution worked for me.

@levitomer
Copy link

Same here..

@orazoulay
Copy link

got to build settings in the Project and the target and add to Library Search

$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)
$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)
$(inherited)

without quotes

clean build folder -> run build

@Mohammed-Alsheikh
Copy link

go to build setting -> library search path -> double click on it and add this 3 command:
$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)
$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)
$(inherited)
clean and rebuild

@karpinski1994
Copy link

got to build settings in the Project and the target and add to Library Search

(TOOLCHAINDIR)/usr/lib/swift−5.0/(PLATFORM_NAME) (TOOLCHAINDIR)/usr/lib/swift/(PLATFORM_NAME) $(inherited)

without quotes

clean build folder -> run build

it doesnt work

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

7 participants