I am using Xcode 9.1 and I have changed the developer account in Xcode. After making the change, I can build the project successfully but I cannot install it on the device. After building, Xcode says A valid provisioning profile for this executable was not found.
In my Info.plist I have an exception to the server in order to connect to it because it is not HTTPS
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<false/>
<key>NSExceptionDomains</key>
<dict>
<key>myUrl</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
</dict>
In Targets->General I have automatically signing set.
In Targets->Build Settings->Code signing identity I have set iOS Developer on all fields
In Project->Build Settings->Code signing identity I have set iOS Developer on all fields
I have also deleted the previous version of the application from the iPhone.