Linker command failed with exit code 1 react native Xcode - react-native

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:

Related

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

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

React Native: How do I completely remove Instabug?

I recently removed Instabug from my React Native 0.53.3 project, but when I run react-native run-ios I get a build failure:
ld: framework not found Instabug
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld /Users/danale/Library/Developer/Xcode/DerivedData/build/Build/Products/Debug-iphonesimulator/NFIBEngage.app/NFIBEngage normal x86_64
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/NFIBEngage.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/NFIBEngage.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
How can I completely remove Instabug from my project so it's not looking for it on iOS build?
So far I have completely removed it from App.js file, but it's still being referenced in build.gradle, MainActivity.java, MainApplication.java, settings.gradle, project.pbxproj and yarn.lock file. I don't even use yarn by the way.
How do I completely clean this up?
If react-native unlink instabug-reactnative didn't work try removing all react-native link changes manually.
You may refer these pages to remove all references
Instabug rn link checklist
Instabug Documentation
Clean the project once every reference is removed.(Deleting Xcode derived data may be needed sometimes)

apple mach-O Linker Error when opening older app

I am getting an error when trying to run app from x-code
ld: library not found for -lxml2.2.7.3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
the app I am trying to open was build in 2013
enter image description here

ZBar SDK is not working in xcode 7

I have added the ZBar SDK in my project and the required frameworks as in the SDK docs. But I am getting the following error:
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
I am unable to solve it, does anyone have any suggestions?

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.