-
Notifications
You must be signed in to change notification settings - Fork 2
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
directory not found for option '-L-L/.../CocoaAsyncSocket' #36
Comments
I followed the same steps as you and I also got the errormessage 'ld: library not found for -lCocoaAsyncSocket' when compiling in xcode. But after a lot trying I discovered my problem. I problem was with the LIBRARY_SEARCH_PATHS, see also: step 4. I compared my project with a new RN project and I saw that the $(inherited) was at the top at the new project, so reversed the order and then it worked. |
Nice, thanks for sharing @aaroncornelissen! @mtieltjes can you please check if @aaroncornelissen's solution works for you? |
Im also getting a similar error, I followed @aaroncornelissen solution but that only gave this:
|
Ok I finally got my project working, what I did was combine this two: facebook/react-native#28483 (comment) If you're not using lottie I don't think this is necessary: |
https://medium.com/@punjabicoder/react-native-version-0-62-e7414c2b2d35 |
Thank you for sharing, @aaroncornelissen! For me, it was the same variable, just for Target instead of Project. Apparently you need to ensure the LIBRARY_SEARCH_PATHS has $(inherited) set last on both React Native Project and Target level in Build settings. Otherwise, it seems the relative search paths for each pod will not be searched and only inherited is used. I don't have an explanation for this, as I don't know how XCode treats the linking phase. |
Thanks @aaroncornelissen, thanks for your time in so little detail! You save my day. The same problem here, solve with @aaroncornelissen solution! |
react native 0.63 |
can i help you ??? :( |
@hoangngocthangbmw hello! I had the same issue with CocoaAsyncSocket.
Environment: Solution: |
@aaroncornelissen Thanks, After four hours, at last your solution worked for me.
|
Most frustrating issue. |
as the aaroncornelissen commented on 9 Apr , i solved this by add $(inherited) on the top of the LIBRARY_SEARCH_PATHS |
I had this issue, but edit: was able to get this to work once I changed the run target to "Any iOS" and updated the xcodeproj library search paths, as well as setting up all the provisioning profile stuff in the apple dev portal. 🤷 |
is there any other solution, um stuck on this for hours. |
|
I don't know why the Facebook teams haven't fixed it, the solution is this:
|
Attempted all of the above but this error was still present. If its a react-native project, open the .xcworkspace instead of the .xcodeproj in XCode. That solved it for me. |
Environment
Upgrading version
0.61.5 => 0.62
Description
After following the upgrade helper and this issue for the iOS project file, I get stuck with the following build error:
I suspect something is wrong in my Search Paths, but I am not yet able to figured it out.
Reproducible demo
The text was updated successfully, but these errors were encountered: