How do i deploy my game on iPhone with windows?

I don’t have an apple dev account. Do i need an apple dev account? Or would it just work? Cause i tried it and it would say “Packaging for iPhone” for like 25 minutes and than it would say “Build failed!” So idk. Help me out, i’m trying to make an iPhone game and i need to test it on my iPhone.

You need an apple IOS dev account, apple use a license provisioning service (that seems very complicated compared to MS system).

So after i get an Apple Dev account, i can start deploying and testing on my iPhone?