Apple Mach-O Librarian (libtool) Error - ios

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

Related

Cordova iOS Building Libtool Failed Error

I'm trying to build the iOS version of my Cordova app.
I'm getting this error on Xcode for CordovaLib. i tried with different versions of cordova-ios.
This is the error log:
Apple Mach-O Librarian (libtool) Error Group
fatal error:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:
can't open file list file:
/Users/XXX/Downloads/Staging/platforms/ios/DerivedData/APP_NAME
(No such file or directory)
Libtool
/Users/XXX/Downloads/Staging/platforms/ios/DerivedData/APP_NAME/Build/Products/Debug-iphonesimulator/libCordova.a normal
x86_64
Try with legacy-build mode.
cordova build ios --buildFlag="-UseModernBuildSystem=0"

Xcode project compile error Extracting x86_64 from _ fatal error: lipo: input file _ must be a fat file when the -extract option is specified

I am compiling a iOS project with Xcode 9.3 but same issue on Xcode 9.2
How can I solve this issue?
I am using cocoapods for these frameworks.
Thank you.

why am i getting this linker error while creating archive of my project in xcode 7.2.1

I am trying to create archive of my project and everytime i am getting this error:
ld: can't open output file for writing: /Users/ranbeerhora/Documents/KicksendRepo/KickSend/trunk/KicksendiOSSwift /Build/Intermediates/ArchiveIntermediates/KickSend/IntermediateBuildFilesPath/KickSend.build/Release-iphoneos/KickSend.build/Objects-normal/arm64/KickSend, errno=21 for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i have tried different things but none of the solution works.
I got the answer.I was not giving path of the objective-c bridging header file in the build setting, when i gave the file path it worked.
Explanation:
xcode was not able to open output file for writing because it was not able to access that file since the path was not given when i gave the path xcode found the file and i was able to create the archive.

Can't build iOS app with own Static Library

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!

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