How to add armv6 architecture to Xcode project?
Asked Answered
E

5

10

I got a warning that my project needs to include the armv6 binary.. but I don't really know how to do that. Have been googling for an answer, but non of the suggestions seems to fit? Is armv6 something I need to download to support in my app, or does Xcode have it, I just need to include it in my project settings? Also, my app should support OS back till 3.1.

I have added i386 behind armv6 and armv7 in the Debug section, but I dunno if that fixes the problem. Does this seem right to you people with more experience?

Screenshot of Architecture settings:

Enrika answered 8/9, 2011 at 12:12 Comment(1)
Using a certain non disclosed beta version? You can't. We're about to upload an app and we have to use the non-beta version. Saying that, I managed to get rid of the "You need armv6 error" by just adding it manually, but still couldn't get it to uploadAppal
C
7

Follow my step

  1. In your picture you choose level change it to "Combined"
  2. Click at Standard (armv7) $(ARCHS_STANDARD_32_BIT)
  3. Choose "Other"
  4. CLick at "$(ARCHS_STANDARD_32_BIT)" and the Click "-" to delete it
  5. Click "+" to add new item
  6. Type "armv6"
  7. Click "+" again
  8. Type "armv7"
  9. Click anywhere to finish

I hope this help

I just have the same problem and I try to do this and it work for me

Ceruse answered 30/5, 2012 at 10:9 Comment(1)
Finally, the solution!Ium
D
3

I could run my code on an old 1st generation iPhone using the string armv6 armv7 instead of $(ARCHS_STANDARD_32_BIT) in architectures and setting "Build Active Architecture Only" to YES.

Deaconry answered 1/12, 2011 at 0:26 Comment(1)
If you get an error like this "Error launching remote program: failed to get the task for process 1837", try to change the release distribution.Deaconry
R
2

In Project Settings, select "Standard" for the architecture (not "Optimized"). This should allow you to select "armv6" for the Active Architecture. This means it should also work on older devices (barring any other deprecations) once it's on the app store.

Change your base SDK to iOS Device 4.x or below so you can see your armv6 architecture.

Robet answered 8/9, 2011 at 12:23 Comment(2)
Change your base SDK to ios 4.x or below.Qualls
I also only have 5.0 as the option for the Base SDK this is with XCode 4.2Caveator
D
1

I just had this same problem. I loaded up a number of older XCode projects and they would compile and run fine with the simulator however as soon as you tried to run or debug on the device (which in my case in a iTouch v2) it would simply say it was running, then say the application exited. No errors, no logs.

Thanks to someone on the iOS Developer forums for putting me on the right track. At some point over the last couple of XCode releases (not counting the XCode releases for OSX Lion as I have access only to OSX Snow Leopard) Apple changed how projects were set up even older ones that were loaded.

The standard architecture used to include both arm6 and arm7 however, and at least with XCode 4.2 standard now only includes Arm 7 $(ARCHS_STANDARD_32_BIT) and apparently resets an old project's settings as well. Which went un-noticed to me as I used the simulator.

I tried changing the configuration string to "arm6 arm7" and this did not work. However the error that was returned contained the solution (at least for me an hopefully others still having this problem.)

In XCode 4.2 if you wish to build down to older hardware such as v1 and v2 devices simply change the project setting for Architectures to $(VALID_ARCHS) which defaults to the old standard of Arm6 and Arm7.

You may as mentioned previously be required to set the Build Active Architecture Only to "Yes" for the debug option (this however is not confirmed by me to be required).

I hope this helps anyone else still having this issue and I apologize for bumping this thread.

Dira answered 28/5, 2012 at 4:18 Comment(0)
H
0

That's because you use the new iOS 5 SDK. Apple drop the armv6 architecture from the standard architectures.

You can have more information on this thread I've started before.

Hoon answered 11/10, 2011 at 11:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.