Libraw build for iOS


I'm trying to get libraw to work with iOS.
I downloaded the zip file from Github. Then based on the replies at this I'm able to get the static library libraw_r.a
When I add the library to my project, I'm able to build and read image successfully in simulator.
But when I'm trying to run it on a read device, I get the error that the library build doesn't support arm64. I checked and the library only work for architecture x84_64.

Is there any config that can help me build the library for arm64 armv7 armv7s?