New project with capacitor wont sync

I created a fresh new project from the ionic cli. I added capacitor ios platform. When i run npx cap sync i get an error. I install cocoapods via brew on my m1 mac. I have tried to remove the ios platform and re add and i still get this issue. how can i fix this?

I also found this but it’s not working either.

look at the Apple Silicon: ffi Bus Error section: