Do I need to register an apple iphone device in order to place my app to testflight

Hi,

I want to place my app in testflight mode. I have a apple developer account.

First I tried to create a ipa file for my app. In the process of doing so I set the device as generic device in Xcode and tried creating archive file but the build failed every time I tried, so I registered my apple phone uuid with the profile I created in my dev account. After doing this I could easily archive the app to .ipa file. Now that the .ipa file is created I was able to push it to testflight mode from xcode.


But My question here is why do we need to register a apple iphone device for .ipa file creation and testflight configuration.


Thanks,

Seema Sharma