1. Disconnect the device from the Mac (uncable).

2. Restart Xcode(open the project again after closing it completely)

3. Connect the device to the Mac (cable)

4. Run

5. If the trust device dialog box is displayed, select Trust. If the trust has been done before, this step is ignored