Need help with iOS cloud build

Hi all,

My iOS cloud build keeps failing, and I can’t seem to figure out why.
I have both a certificate and a provisioning profile and configured them in a security profile on the ionic dashboard.


Provisioning Profile:

However, when i run:
ionic package build ios --profile=develop
from the command line, the build keeps failing with the following message:

Check dependencies
No signing certificate "iOS Development" found:  No "iOS Development" signing certificate matching team ID "XXXXXXXXXX" with a private key was found.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'


The following build commands failed:
	Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/package/workspace/apps-46b7f1e6-19/cordova/platforms/ios/cordova/build-debug.xcconfig,-workspace,King.xcworkspace,-scheme,King,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,King.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/package/workspace/apps-46b7f1e6-19/cordova/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/package/workspace/apps-46b7f1e6-19/cordova/platforms/ios/build/sharedpch

Am I doing it wrong, am I missing something?
Any help is greatly appreciated, i’ve been pulling out my hair for two days now without result.

Kind regards,

As we can’t look at the certs, you might have more luck here:
(Scroll down to “Business and Customer Support”)

I had this issue because I have project has pre-installed plugins. These plugins was request additional variables (like facebook4 plugin). If you have any plugins request variables first remove it:

ionic cordova rm plugin cordova-plugin-facebook

Then remove your platform and add it again

ionic cordova platform rm ios

ionic cordova platform add ios

Because you don’t have any problems with your plugins, your platform will be added in correct way

Then ionic cordova build ios