Build .ipa for internal app in ios

How to build apk from flutter and deploy it to ipa files that can be installed on ios device. is it really need to register as apple developer enterprise program or is that any other ways ?