library not found for -lcommonCrypto, Which is added in my project - ios

I have added libCommonCrypto.dylib library in my project from Build Phase but still my project display error below,
ld: library not found for -lcommonCrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here is the screenshot of my Build Phase menu.

I don't think you need that library to include directly, instead you can try
adding Security.framework
#import <Security/Security.h>

Related

Getting framework(MLVision/MLVisionTextModel) not found issue when Integration firebase SDKs without using Cocoa pods

I am working on integration firebase ML vision kit without using the cocoa pods:
I am getting below error when adding SDK frameworks(MLVision and MLVisionTextModel) in app :
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Point 1:

My steps as I followed in app to integrate these SDK's framework :
A. Downloaded firebase SDK 5.20.2.
B. Followed the steps as defined inside the Readme.md file.
First, I added all framework from 'Analytics' directory into project navigator pane and do same thing for Firebase.h file.
Added the -ObjC flag to "Other Linker Settings
In AppDelegate.m , I add #import "Firebase.h" and [FIRApp configure];.

Project build successfully without any error.
C. Getting issue : For text recognition, I added MLVision and MLVisionTextModel in app as defined the step 5 in Readme.md for require framework and resource.
When I build this project I am getting below error in app:
I am getting below error as
Undefined symbols for architecture x86_64:
"std::__1::basic_iostream<char, std::__1::char_traits<char> >::~basic_iostream()", referenced from: l59875 in TextDetector
"typeinfo for std::__1::basic_iostream<char, std::__1::char_traits<char> >", referenced from: l59875 in TextDetector

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Point 2: Getting issue
Sometimes I was trying same thing adding SDK's framework by 'Link Binaries With Libraries' in Build Phases for Analytics, MLVision and MLVisionTextModel.
I was getting below error as
ld: framework not found FirebaseMLVisionTextModel
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Note: The framework FirebaseMLVisionTextModel doesn't have FirebaseMLVisionTextModel.h file. It doesn't exist header folder which is missing in FirebaseMLVisionTextModel framework:
I am getting same issue for TextDetector.framework which doesn't have any header folder.
Firebase.h : Deceleration file in Firebase.h which is missing in framework:
#if __has_include(<FirebaseMLVisionTextModel/FirebaseMLVisionTextModel.h>)
#import <FirebaseMLVisionTextModel/FirebaseMLVisionTextModel.h>
#endif
Xcode version: 10.1
Firebase SDK version: 5.20.2
Firebase Component: ML Kit (text recognition)
Component version:
Pls suggest how do I fix this problem.
How do I use FirebaseMLVisionTextModel and TextDetector framework that doesn't have any header , these frameworks have only exec file?
From https://github.com/firebase/firebase-ios-sdk/issues/2843:
The system C++ libraries are not being linked. That can happen with an incorrect Xcode module cache. Do rm -rf ~/Library/Developer/Xcode/DerivedData to reset. If that doesn't work, add libc++ to the Link Binary With Libraries Build Phase:

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 -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).

YouTube api: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Following are the steps I have followed to integrate YouTube upload in my app,
added libGTLTouchStaticlib.a and respective header folder into my project.
added libGTLTouchStaticlib.a in General->Linked Frameworks and Library.
mentioned -ObjC and -all_load in other linker field of build settings
added systemConfigaration and security framework in General->Linked Frameworks and Library
But when I build its giving following error,
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thank You #Spynet. I found the problem. I havent deleted all the classes of previous api before using lib.a . Some of the classes were remaining without being deleted. So it was giving above error (duplicate classes). After removing it works

how to resolve sdk error

i am adding a a swiper sdk in my application. when i run its test app it work fine but when i import my file to it .get error
ld: library not found for -lCardAnalyLib1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i searched for the error but dint get how to resolve. nd some time armv error
(null): Library not found for -lCardAnalyLib1 it is .a typefile
#import <UIKit/UIKit.h>
#import "AudioAnalyLib.h"
#import <QuartzCore/QuartzCore.h
these are pre imported file but if i import any other file get above error
You need to add the .a file to your target. Choose the Build Phases tab of the target in Xcode, open up the Link Binary With Libraries section, and add your library file.

Resources