How to build Nextcloud app on iOS physical device

So for a couple days now, I’ve been trying to get Nextcloud up and running on xcode on a physical device. Can anyone tell me where they think I might be going wrong?

I clone the master repo.
Install dependencies using carthage.
Add the google info file.

But I still get all kinds of errors when running on an actual device. (Simulators work)

I’ve tried using xcode 13, 12.5, and 12.5.1.

My most recent errors when building are all in RealmSwift.

Can anyone tell me how they get it running?