Apple mach -o- Linker Error - ios

I am new to IOS development and i tried to resolve the error but nothing works. Provide some suggestion.
ld: library not found for -lPods-XXXXXXX-AppInvites
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Open the project using workspace (that was generated by CocoaPods) instead of the xcodeproj. I think this will resolve your issue. Otherwise there may be some library missing in CocoaPods.

Related

ld: library not found for -lBoringSSL-GRPC clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am currently having issues archiving my react native project in Xcode. Building and running my project works fine in Debug but archiving is a problem. The following error appears when attempting to archive:
ld: library not found for lBoringSSL-GRPC
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried removing 'Firebase/Firestore' from my Podfile, running pod install and then trying to archive but that doesn't seem to help. I would get the error:
ld: library not found for lDoubleConversion
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried removing the quotes from the library search paths in the build settings as suggested from someone who had a similar issue. This didn't help unfortunately.
I am opening the workspace. Although, when opening .workspace it does direct me to my project .xcodeproj. Not sure if this is the problem.
Can someone please assist? I would really appreciate it. I'm clueless here. I'm fairly new to Xcode and React Native.
Thank you.

Apple Mach-O Linker Error - Xcode (Swift)

I'm trying to use a cocoapod with my Xcode project (Swift).
When I try to Build the project it fails with:
Apple Mach-O Linker Error Group
- "_OBJC_CLASS_$_FSCalendar", referenced from:
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
Errors
Any ideas what could be causing this?
(The cocoapod I am using is: https://github.com/WenchaoD/FSCalendar
UPDATE
I have added the frameworks and now I am just getting "clang: error: linker command failed with exit code 1 (use -v to see invocation)"
UPDATE
Full error:
ld: warning: directory not found for option '-F/Users/me/Documents/APP/build/Debug-iphoneos/FSCalendar'
ld: warning: directory not found for option '-F/Users/me/Documents/APP/build/Debug-iphoneos'
ld: framework not found FSCalendar
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried everything suggested on the internet for the same issue and nothing resolved this. I fully re-installed Xcode and Cocoapods, set up the project exactly the same as before and it is now working.
After I ran pod install on the new name I changed my project to, I had this error cause the pod framework was not linking to NEW project name and was still looking for OLD name.
I resolved by going into my projects 'Linked Frameworks and Libraries' in the Targets section and removing the OLD framework that has the OLD project name.
Targets > General > Linked Frameworks and Libraries > -(Pods_OLD_PROJECT_NAME.framework)

ld: library not found for -lJGProgressHUD

I cloned the project and tried to build it but got stuck due to the following error, can you tell me how to deal with it?
ld: library not found for -lJGProgressHUD
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have done pods install, but the error exists.
Need some help in solving this issue.
Well, That's what worked for me :
Open Build settings
Search for Other Linker flags
remove -l"Pods-XXXLibrary"
Thats it !

ld: library not found for -lPods-Google-Maps-iOS-SDK iOS

I install googlemap pod file that time i got an error and unable to solved this .. please help me
I am getting this error:
ld: library not found for -lPods-Google-Maps-iOS-SDK clang: error:
linker command failed with exit code 1 (use -v to see invocation)
This is the error because u didn't integerate sdk using podfile correctly so the sdk files are missing in your project
Use this link https://developers.google.com/maps/documentation/ios-sdk/start it will help.Thanks
follow this link properly https://developers.google.com/maps/documentation/ios-sdk/start
and make sure you have set YES in BUILD ACTIVE ARCHITECTURE ONLY in build settings (in target).

library not found for -lSystem

When I try compile version for device I has this error
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I try remove all frameworks and libraries and this error still stay.
I just reinstall xCode and problem has been resolved

Resources