简体   繁体   中英

armv7 not being added while creating static library

I'm creating a static library in iOS. When I check for architecture of library using the command

lipo -info {LibraryName}.a

I'm getting only arm64 as the architecture for library. I also need armv7 to be included for this library so that I can integrate it with another app and archive it.

In the Architectures I've selected Standard architectures

(armv7, arm64) - $(ARCHS_STANDARD)

And for Valid architectures I've arm64 armv7 armv7s

please help me.

Also check your iOS deployment target. If it's 12.1 for example it won't include armv7.

Make sure that Build Active Architecture Only is set to No . (This is under Build Settings in the Architectures group).

I had a similar problem and this seems to fix it.

(Now I just need to understand why armv7s is no longer included and if it matters...)

In addition to making sure Build Active Architectures Only is set to No , check the format of Valid Architectures . I have accidentally typed armv7, arm64 – notice the comma – on multiple occasions now, and it does not give you an error or warning. It simply builds arm64 by default. Correct it by removing the comma, like this: armv7 arm64 .

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