Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Build Pipeline with There are no accounts registered with Xcode. Add your developer account to Xcode

I am doing DevOps on my react-native projects. I want to build the project and want automation on iOS app deployment. But when I try to build it gives following error:

Check dependencies Code Signing Error: There are no accounts registered with Xcode. Add your developer account to Xcode Code Signing Error: No profiles for 'ios.kapiling' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'ios.kapiling'. Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.4'

Here is my YAML script:

steps:
- task: Xcode@5
  displayName: Xcode
  inputs:
    actions: '-allowProvisioningUpdates archive '
    configuration: Release
    sdk: iphoneos11.4
    xcWorkspacePath: 'ios/community_app.xcworkspace'
    scheme: 'community_app'
    xcodeVersion: 10
    signingOption: auto
    teamId: XXXXXXXXXX
like image 873
Jenish Avatar asked Apr 02 '19 13:04

Jenish


People also ask

Can I use Python in Azure DevOps?

Creating a pipeline in Azure DevOps to build and publish python packages/artifacts. With Azure DevOps you can easily create sophisticated pipelines for your projects to ensure that the quality of your code and development process is coherent.


1 Answers

From the error you can understand that an Xcode app must be signed and provisioned to run on a device or be published to the App Store.

he signing and provisioning process needs access to your P12 signing certificate and one or more provisioning profiles. The Install Apple Certificate and Install Apple Provisioning Profile tasks make these available to Xcode during a build.

The following snippet installs an Apple P12 certificate and provisioning profile in the build agent's Keychain. Then, it builds, signs, and provisions the app with Xcode. Finally, the certificate and provisioning profile are automatically removed from the Keychain at the end of the build, regardless of whether the build succeeded or failed. For more details, see Sign your mobile app during CI.

# The `certSecureFile` and `provProfileSecureFile` files are uploaded to the Azure Pipelines secure files library where they are encrypted.
# The `P12Password` variable is set in the Azure Pipelines pipeline editor and marked 'secret' to be encrypted.
steps:
- task: InstallAppleCertificate@2
  inputs:
    certSecureFile: 'chrisid_iOSDev_Nov2018.p12'
    certPwd: $(P12Password)

- task: InstallAppleProvisioningProfile@1
  inputs:
    provProfileSecureFile: '6ffac825-ed27-47d0-8134-95fcf37a666c.mobileprovision'

- task: Xcode@5
  inputs:
    actions: 'build'
    scheme: ''
    sdk: 'iphoneos'
    configuration: 'Release'
    xcWorkspacePath: '**/*.xcodeproj/project.xcworkspace'
    xcodeVersion: 'default' # Options: 8, 9, 10, default, specifyPath
    signingOption: 'default' # Options: nosign, default, manual, auto
    useXcpretty: 'false' # Makes it easier to diagnose build failures
like image 81
Shayki Abramczyk Avatar answered Sep 28 '22 12:09

Shayki Abramczyk