soleil
soleil

Reputation: 13073

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?

Upvotes: 5

Views: 18550

Answers (4)

Code Hunter
Code Hunter

Reputation: 11198

I did this by changing valid architecture from build setting. I am attaching a screenshot for your help.

enter image description here

Thanks, Cp

Upvotes: 3

Edwin Iskandar
Edwin Iskandar

Reputation: 4119

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.

Upvotes: 8

Caleb
Caleb

Reputation: 124997

Add armv7s to the Valid Architectures setting in the Build Settings for the library's project/target.

Upvotes: 0

Allen
Allen

Reputation: 472

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

Upvotes: 19

Related Questions