Ionic-Archive step code-signing Error


#1

We are facing code signing error at the ionic-archive step. We have uploaded provisional profiles and exported certificates manually and uploaded the same in Bitrise(We tried to use codesigndoc in local environment but it couldn’t export the certs in xcode10 when we select automatically export option in xcode10).

Actual Error:

Check dependencies
Code Signing Error: Signing for “GE Reach DEV” requires a development team. Select a development team in the project editor.
Code Signing Error: Code signing is required for product type ‘Application’ in SDK ‘iOS 12.1’
** ARCHIVE FAILED **

I have also followed this How to "Select a development team in the project editor" in ionic-archive steps? and we are using GUID for provisional profile. So not sure how we can fix this issue.

Environment:

Where did the issue happen?

Hybrid (Xamarin, Ionic, …) on macOS, includes Visual Studio for Mac, Stable channel
DEFAULT

Which build Step causes the issue and which version of the step?

E.g.: ionic-archive@2.0.0

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO
  • Does the issue happen sporadically, or every time? : every time.

Local reproduction

We faced the same issue in local but it got fixed after uncheck and check option in xcode 10 for automatic signing with the same uploaded cert/profile in bitrise.

Build log


#2

Hi @gedevops ,

As this issue has been solved on our thread on the on-site chat I’ll be closing this thread.
Just to summarise it here as well, the needed steps to make this build work were:

Be sure that you use the same build configuration for Generate Cordova Build Configuration step and in the Ionic Archive step.

E.g: If you set the build configuration input for the Generate Cordova Build Configuration step to release, then you need to use the release configuration in the Ionic Archive step as well.

Happy Building! :rocket::muscle:


#3