First, it's recommended to deploy the project to your phone through automatic provisioning, which doesn't require you to manually create a configuration file, you can refer to the Automatic provisioning for iOS apps.
Also, if you choose to create the configuration file manually, you need to make sure that the App ID of the configuration file is the same as the Bundle identifier in the project's info.plist file. And you need to download the preconfigured configuration file in Visual Studio after creating it.