I am trying to run my Cordova app on the connected iPhone, but everytime I try to do cordova run I am getting the following error
Check dependencies
No profiles for 'com.myapp.chat' were found: Xcode couldn't find a provisioning profile matching 'com.myapp.chat'. Code signing is required for product type 'Application' in SDK 'iOS 10.3'
I have created a build.json file in the root directory of the project with the following contents
{
"ios": {
"debug": {
"developmentTeam": "some_id_here"
},
"release": {
"developmentTeam": "some_id_here",
"codeSignIdentity": "My App",
"packageType": "ad-hoc"
}
}
}
The ID of the profile is correct, I have downloaded it from the developer support page, the com.myapp.chat package name is also registered on that provisioning profile.
I have XCode 8.3.2 installed, and I have logged in with my account in it in Preferences > Accounts, then I have clicked Download All Profiles.
EDIT: I am using Cordova CLI to build the app.
What am I doing wrong please?