React-native - Error on deploy app to xcode - directory not found for option '-L-L/Users/...' - react-native

I have a problem on deploy my app to xcode after run command below:
pod install
After run this command, dependencies was installed correctly:
When I tried to compile and deploy again, I had the several erros like this:
1) Target 'XXX' (project 'XXX') has copy command from '/Users/XXX/Documents/projects/react-native/tasks/node_modules/react-native-vector-icons/Fonts/Zocial.ttf' to '/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-bbklwsxeibuqhtduldwfhgorkgcg/Build/Products/Debug-iphonesimulator/XXX.app/Zocial.ttf'
2) That command depends on command in Target 'XXX' (project 'XXX'): script phase “[CP] Copy Pods Resources”
To fix it, I change build system of xcode:
But now, I have the following issue:
ld: warning: directory not found for option '-L-L/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-bbklwsxeibuqhtduldwfhgorkgcg/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket'
ld: library not found for -lCocoaAsyncSocket
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Problem solved with this link:
https://github.com/react-native-community/upgrade-support/issues/36

Related

Linker command failed with exit code 1 react native Xcode

I am new in react native and integrated push notification for my app after linking all the file and configuration I am regular getting below error:
I used all the steps:
1) Removed build setting > Library paths.
2) Deleted "DerivedData" all the files and clean project and build.
my error is this:
ld: warning: directory not found for option '-L/Users/admin/Library/Developer/Xcode/DerivedData/mbsapp-hgygqszwdnjiuogwbarwmtxsmneb/Build/Products/Debug-iphonesimulator/React'
and in red :
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please check screenshot here:

library not found for -lPods-Bolts

ld: library not found for -lPods-Bolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Getting this error when I try to compile my code, been stuck on it for so long, think its pretty simple to anyone who knows Xcode development.
These might help:
xCode: Library not found - lPods-Bolts - Exit Code 1
library not found for -lPods
Other than that, off the top of my head, here are a couple of things you can try:
Make sure you have cocoapods installed locally on your machine, and that your environment has a path to it. From a shell prompt, do the following:
$ pod --version
You should see something like "0.39.0" or "1.0.0". If you see "No such file or directory", you'll need to install it (make sure to read the "Install" and "Getting Started" sections completely)
Make sure you have all of your project's pod dependencies installed:
$ pod install
Do a clean build
Good luck!

Problems with CocoaPods GoogleCloudMessaging (Xcode 7.2)

I added GoogleCloudMessaging with CocoaPods to the project.
The file "Pods" contains the following code:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
dependency 'libPusher', '1.1'
pod 'Google/CloudMessaging'
After install I had problems with library -lPods, but the problem was solved by removing the content of Build Settings -> Linkers -> Other Linkers Flags.
As result I got next error:
ld: library not found for -lCocoaAsyncSocket
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have solved the problem: it was necessary to use the
$ pod update
from the terminal

Build fails after using CocoaPods

I am using CocoaPods for the first time. Installing required libraries causes the build process to break.
Installing Podfile gives this warning:
xcrun: error: active developer path ("/Volumes/Xcode 6.1/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)
The following is the build error message:
clang: error: no such file or directory: '/Users/aztunwin/ObjC/DenkoStation/Pods/Target Support Files/Pods-RKValueTransformers/Pods-RKValueTransformers-dummy.m'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
The first error appears to be because you originally launched Xcode 6.1 from your disk image (.dmg) file, so that's where MacOS appears to be looking for the command line tools. You need to reset that.
Go to terminal and type in:
xcode-select --switch /Applications/Xcode.app
Your copy of Xcode is really found in your /Applications folder (as I can see from the second error output). Once you set the command line tools path using xcode-select, clean your project and restart Xcode and try building again.

Opening BasicMenu.xcodeproj fails on the new ECSlidingViewController 2

Is it possible to open the BasicMenu.xcodeproj on xcode on the new version of ECSlidingViewController without having to do it via Examples.xcworkspace? I am trying to just work through the BasicMenu example specifically and when I do I get this error: ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
No, the dependencies to ECSlingViewController won't be available.
You should be able to work with the BasicMenu project inside the workspace. CocoaPods is not required, the repo includes the installed dependencies.