Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Way to restore Xcode to accept armv6 architecture?

I have a 3rd party .a library, which is apparently compiled for only armv6 compatibility, where both new Xcodes (3.2.6 and 4), both now require a separate armv7 slice to run on the device. The link error is: file is universal but does not contain a(n) armv7 slice for architecture armv7.

Anyone know how to make either of the two new Xcode operate as 3.2.5 did and accept the existing library while I'm waiting for the library vendor to cook up an armv7 version?

like image 491
Owen Hartnett Avatar asked Mar 10 '11 22:03

Owen Hartnett


2 Answers

Nothing worked for me until I set "Build Active Architecture Only" to No.

like image 112
Plot Avatar answered Sep 21 '22 09:09

Plot


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.

like image 40
PengOne Avatar answered Sep 19 '22 09:09

PengOne