Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 753
John H Avatar asked Oct 31 '22 14:10

John H


2 Answers

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...)

like image 136
mm2001 Avatar answered Nov 11 '22 14:11

mm2001


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

like image 43
charshep Avatar answered Nov 11 '22 14:11

charshep