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
Related
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.
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)
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.
When i am trying to install my application on iPhone/iPad I am getting the following error. I am using new Xcode 4.5. What should I do to remove this error. I need to test my app on device.
file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/nishijain/Desktop/Backup SecondPrism/mobile/apps/SecondPrism/SecondPrism/Google Analytics SDK/libGoogleAnalytics.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks
You need to download the latest version of the SDK, according to the Changelog there is support for armv7s in Version 1.5.1.
If the error still happens try an older version of Xcode (probably Xcode 4.4.1) which has no clue of armv7s and throws no error.
EDIT:
This should work too:
In your Build Settings remove armv7s from Valid Architectures.
I just installed the 4.3 Beta 2 and now I can't build on my device (works fine on the simulator). My build settings are:
Base SDK: Latest iOS (iOS 4.3)
Architectures: Standard (armv6 armv7)
I am getting the below errors. What am I missing?
Error #1
Undefined symbols for architecture armv6:
"_OBJC_CLASS_$_UIProgressView", referenced from:
_OBJC_CLASS_$_PDColoredProgressView in PDColoredProgressView.o
....
ld: symbol(s) not found for architecture armv6
collect2: ld returned 1 exit status
Error #2
in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/lib/crt1.o, file is universal but does not contain a(n) armv7 slice for architecture armv7
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
Considering that iOS 4.3 is under NDA, as all betas are, you won't find much help here. And anyone who actually does offer you up an answer that could remotely help you, would be breaching their NDA and could be thrown out of the program. My suggestion is to take this to the apple developer forums, there's a private confidential information forum you can use there (it's in red).
What is the OS version on Device? Try setting the deployment target to 4.0
I tried deleting the framework and reading it. Still no go. To be sure I readded all of my frameworks and now I am also receiving these warnings.
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics, file was built for unsupported file format which is not the architecture being linked (armv6)
If I deleted the frameworks and readded them from iOS4.3 how can 4.2 still be referenced? Is there more to removing the reference than deleting the .framework file?