简体   繁体   中英

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?

尝试在“项目构建”设置中将“仅构建活动体系结构”设置为“是”。

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.

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

在此输入图像描述

Thanks, Cp

armv7s添加到库的项目/目标的Build Settings中的Valid Architectures设置中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM