I created Cocoa Touch Static Library, that uses some CocoaPods.
Now I'm creating an app, that uses that library. And when I try to build app, Xcode says:
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods is not an object file (not allowed in a library)
Can any one help, what should I do to resolve this errors? Thanks!
Related
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:
I am running a React-Native iOS app and I am getting the following errors when I build within XCode. What could be the issue?
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lBVLinearGradient
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lBVLinearGradient is not an object file (not allowed in a library)
The issue is that the linker can't locate the library:
libBVLinearGradient
You follow the readme, all steps? You did the step 2, 3 and 4
correctly? After you import in Xcode project the file
libBVLinearGradient.a is in Products folder.
↳ https://github.com/react-native-community/react-native-linear-gradient/issues/20
I'm trying to integrate MetatoneOSC into a brand new Swift iOS project.
What I've done so far:
Create new iOS Swift Project
Drag folder full of .h and .m files into Xcode project
Create a functioning bridging header (autocomplete now works for methods in the library) - #import "MetatoneOSC/F53OSC.h"
Put the following code in ViewController.swift:
let client = F53OSCClient.init()
The build fails with the following error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_F53OSCClient", referenced from:
type metadata accessor for __ObjC.F53OSCClient in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Each new class I use in my code creates a duplicate error, with a different class name after $_F53OSC in the error message.
I have tried setting up a new Objective-C project to make sure it's not a bridging error, and I get exactly the same error. Anyone know how I can resolve this?
This generally means you forgot to compile the relevant .m file. In you "Build Phases > Compile Sources" step for the target, make sure you've included all the relevant files. This doesn't always happen automatically if you just drag them into the project.
I am getting this error when running a library I created in a third-party project on iOS 5. The project compiles just fine but right upon startup I get the following in my console:
dyld: Symbol not found: _NSFontAttributeName
Referenced from: /Users/Stunner/Library/Application Support/iPhone Simulator/5.0/Applications/C26FFA60-BB4A-4321-908A-0EF8756F47D3/An.app/An
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/UIKit.framework/UIKit
in /Users/Stunner/Library/Application Support/iPhone Simulator/5.0/Applications/C26FFA60-BB4A-4321-908A-0EF8756F47D3/An.app/An
What perplexes me is that I have a sample app for the library I created, and when run on iOS 5, it runs fine. I am suspecting that there may be additional build settings in the third-party application that is causing me to see this error.
In my sample app I have the following linker flag:
-ObjC
The third party app has these:
-ObjC -lxml2 -lz -all_load
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.