Last lines of the Xcode's build log: Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'

Hi ,
I’m getting the below error
"Last lines of the Xcode’s build log: Code Signing Error: Code signing is required for product type ‘Application’ in SDK ‘iOS 11.2’"
Certificate and Provision profile install step is executing fine. Archive is getting failed.
I tried both Xcode-Archive step and by executing Archive & export-archive commands through script.
I’m facing the same issue for Code signing.
Please help ASAP. Thankyou.

Hi @rasmitha.maganti,

Please see: Code signing is required for product type 'Application' in SDK

If that wouldn’t help just let us know, but don’t forget to include the related build’s URL! :slight_smile:

We are an organization currently building apps in iOS and Android. We are thinking to move our iOS build system to Bitrise. Currently we have a single MAC server for the build purpose.
In our iOS build system , We are dynamically creating the provisional profiles and using the same P12 certificate which is in our git.
The dynamically created Provisioned profiles will be uploaded to git once created , so they can be refered during next build for the same app.

Using Bitrise, we are able generate the provision profile dynamically using Fastlane commands and we are able to upload them to git as well.

Certificate Installation step is executing fine in bitrise. However we are facing issue while archiving with Xcode. We are currently using the following xcodebuild commands :

xcodebuild -workspace ${BITRISE_SOURCE_DIR}/abc/abc.xcworkspace -scheme ABC -archivePath ${BITRISE_SOURCE_DIR}/abc/ archive -allowProvisioningUpdates

security unlock-keychain -p ${BITRISE_KEYCHAIN_PASSWORD} ${HOME}/Library/Keychains/login.keychain

xcodebuild -exportArchive -archivePath ${BITRISE_SOURCE_DIR}/ABC.xcArchive -exportPath ${BITRISE_SOURCE_DIR}/abcd -exportOptionsPlist ${BITRISE_SOURCE_DIR}/scripts/info-plist.plist -allowProvisioningUpdates

Info-plist.plist :

<?xml version="1.0" encoding="UTF-8"?> method ad-hoc compileBitcode

Code Signing Error: There are no accounts registered with Xcode. Add your developer account to Xcode
Code Signing Error: No profiles for ‘com.abc.121’ were found: Xcode couldn’t find any iOS App Development provisioning profiles matching ‘com.abc.121’.

Can you please guide us how to authenticate our developer account with your Bitrise Xcode.

Our build URL : https://www.bitrise.io/build/cdea4df32aafe266

Thankyou.

@rasmitha.maganti the issue is:

Code Signing Error: No profiles for 'com.abc.121' were found:  Xcode couldn't find any iOS App Development provisioning profiles matching 'com.abc.121'.

This means that you did not generate a profile like that. You don’t have to auth anything, just provide that profile. It seems you don’t provide all the required ones.

It might be as simple as a single missing Dev profile - since Xcode managed signing a Dev cert & profile are always required, as Xcode always does an initial signing with Dev signing, to generate the archive, and only then it exports with the distribution one from the archive.

Please run our codesigndoc tool to collect the base required files: https://devcenter.bitrise.io/ios/code-signing/#collect-the-required-files-with-codesigndoc

1 Like

Also worth to mention our iOS Auto Provision step & feature, might help, if you can use a single Apple account for generating the signing files: https://blog.bitrise.io/ios-auto-provision-step

Once configured Bitrise.io can auto generate the required signing files, using the configured Apple Dev Portal account :slight_smile: