Hello,
Welcome to Microsoft Q&A!
It works fine on the simulator but this error is thrown only when deploying to the device.
To test on a physical device, the device must be provisioned.
- First of all you need to have an active subscription to Apple's Developer Program , or use Free Provisioning (Apple introduced Free Provisioning in Xcode 7 which allows a single application to run on a single device without being a member of Apple's Developer Program. There are a number of limitations when provisioning in this way, as detailed here).
- Then visit the Apple Developer Portal and register as an Apple developer, it is necessary to have an Apple ID .
- Then request a Certificate, and register the device on which the application will be deployed.
- Then provision your iOS device (Automatically / Manually ) .
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.