iOS - file does not contain an armv7s slice
18,515
Solution 1
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.
Solution 2
Try setting the Build Active Architecture Only to 'YES' in the Project Build settings.
Solution 3
I did this by changing valid architecture from build setting. I am attaching a screenshot for your help.
Thanks, Cp
Author by
soleil
Updated on June 04, 2022Comments
-
soleil about 2 years
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?