Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS - file does not contain an armv7s slice

I cannot build and test on devices because Xcode gives me this error:

ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /.../Classes/AddThis/libAddThis.a for architecture armv7s

How do I update this library to support armv7s?

like image 594
soleil Avatar asked Oct 05 '12 00:10

soleil


2 Answers

Try setting the Build Active Architecture Only to 'YES' in the Project Build settings.

like image 98
Allen Avatar answered Nov 16 '22 14:11

Allen


libAddThis.a needs to be built for the armv7s architecture. If you don't have control over this then you will need to remove armv7s from valid architectures as you did.

like image 8
Edwin Iskandar Avatar answered Nov 16 '22 14:11

Edwin Iskandar