armv7s error while Archive in iPhone [duplicate] - iphone

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)

Related

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.

libmysqlclient.a for armv7s

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.

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.

Theos Make Issues

I've been following this tutorial:
http://brandontreb.com/beginning-jailbroken-ios-development-building-and-deployment/
to get an application started by the name of foobar. But when I type 'make', I get...
19:33:14-~/code/theos/foobar$ make
Making all for application foobar...
Compiling main.m...
Compiling foobarApplication.mm...
Compiling RootViewController.mm...
Linking application foobar...
ld: file is universal (4 slices) but does not contain a(n) armv6 slice: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/crt1.o for architecture armv6
collect2: ld returned 1 exit status
make[2]: *** [obj/foobar] Error 1
make[1]: *** [internal-application-all_] Error 2
make: *** [foobar.all.application.variables] Error 2
Because I'm using theos instead xcode (although 4.5 is installed, with version 6.0 SDK), changing build settings doesn't help.
FYI I'm developing for iphone iOS 4.3.3
This is currently a known issue in theos, you should put the following at the top of your makefile if you only have access to Xcode 4.5 with the iOS6 SDK:
ARCHS = armv7
if you have access to older SDKs, the following will allow you to compile for armv6 successfully:
TARGET = iphone:sdkversion
where sdkversion is a numerical string of the form "4.0" etc, so if you want to use the 5.1 SDK (which is the latest that will allow you to create armv6 objects), put the following at the top of your makefile:
TARGET = iphone:5.1