In my project I have three targets - project target, unit test target and UI test target.

While upgrading to Xcode 8 I am facing issue with UI test target with error message: 

> 
> Provisioning profile doesn't include the get-task-allow entitlement.
> 
> 
> 

The image below shows my problem.

[![enter image description here](https://i.stack.imgur.com/BvVV5.png)](https://i.stack.imgur.com/BvVV5.png)

**How to workaround this?**

However there is a mismatch between that alert and what is there indeed:

[![enter image description here](https://i.stack.imgur.com/NmHzk.png)](https://i.stack.imgur.com/NmHzk.png)