libmysqlclient.a for armv7s - iphone

How can I get the libmysqlclient.a for armv7s so I can use it for my iPhone 5 to? Now I get this error:
ld: file is universal (6 slices) but does not contain a(n) armv7s slice: /Users/x/Documents/Xcode/Projecten/DirectMySQL/DirectMySQL/Objc_Mysql_iPhone_OSX/lib/libmysqlclient.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks,
Daan!

Remove the armv7s from the architecture build settings. This is not necessary for anything other than high performance games on the iPhone 5 processor. Apple's default project include the armv7s but you don't need it.

Related

AppleTV Apple Mach-O Linker (ld) Error Group on UIFoundation

i'm building https://github.com/jvanakker/tvOSBrowser <- this browser project for Apple TV (4th gen), OS 11.3. Xcode 9.3 (stable) and i get following error:
ld: in
/System/Library/PrivateFrameworks/UIFoundation.framework/UIFoundation', missing required architecture arm64 in file
/System/Library/PrivateFrameworks/UIFoundation.framework/UIFoundation (2 slices) for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
On AppleTV simulator it works quite well, but on actual hardware it fails...

Can not archive the app associated with Zbar sdk in Xcode 5

I have developed an application where i used the zbar sdk. It was working well in xcode 4.5, but recently i have updated to xcode 5. Now when i want to archive my app for app store, it shows the following error.
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/codemenmini2012-2/Desktop/QRTime (Zbar)/libzbar.a file '/Users/codemenmini2012-2/Desktop/QRTime (Zbar)/libzbar.a' for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How to solve the issue? Thanks in advance.
remove armv7s from valid architecture in project targets.

arm7 eeror in iphone opencv project

How to solve ld: file is universal (2 slices) but does not contain a(n) armv7 slice: /Users/admin/Downloads/FaceDetect/libcv.a for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation) error in iphone opencv project
You need to change the architecture armv7.
and change the compiler GCC to LLVM.

armv7s error while Archive in iPhone [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
linker command failed with exit code 1 xcode4.5
I am getting following error while i am archive my app for app store
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/***************/l******/*****ppCircle.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i tried to remove armv7s from my target then some new error start occuring.how i can resolve it
The problem is : you are using a library call : **ppCircle.a and this library was not compiled for armv7s.
Only two solutions :
1) If you have the library source code, you can try to compile it for armv7 AND armv7s
2) Instead of compiling your project with armv7s, use armv7 only (this can be changedin the project build settings)

iOS API Kal doesn't compile with iPhone 5

I'm using the iOS Kal API in my project. When I try to compile and run the project with my iPhone 4S or the iPhone 5 Simulator, it works perfectly but when I try it with a real iPhone 5, I get this error :
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/sebliberal/Dropbox/Appli FACE 06/Version iPhone/FACE06/Twitter+OAuth/Libraries & Headers/libOAuth.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I already searched for this error and I set YES for Build Active Architecture Only but I still have the error.. What's the problem ?
Thanks :)
Read this:
Framework (RestKit) not compatible with armv7s
This:
AdMob ARMv7s support
or This:
iOS - file does not contain an armv7s slice
Or one of many answers on SO and the internet.
The short answer is you need to either update your library or remove armv7s from your supported architectures.