How to build librealmcore-ios.a manually?

I have a project that uses Realm Cocoa Pod. I have noticed that it comes with a binary blob. What the best way to build it from source? I have tried building realm-core and replacing the static library, but realm-core doesn’t have sync bits that the Pod is configured with by default.