0

I am creating .ipa file form VSTS and getting the following error:

Code Signing Error: There are no accounts registered with Xcode. Add your developer account to Xcode 2018-02-26T05:06:35.4093530Z Code Signing Error: No profiles for 'com.digitalmettle.alcami' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.digitalmettle.alcami'. 2018-02-26T05:06:35.4114650Z Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'

enter image description here

How can I add the developer account in Xcode?

Twinkle
  • 394
  • 4
  • 17
  • What're tasks of your build definition? There are [Install Apple Certificate](https://learn.microsoft.com/en-us/vsts/build-release/tasks/utility/install-apple-certificate) and [Install Apple Provisioning Profile](https://learn.microsoft.com/en-us/vsts/build-release/tasks/utility/install-apple-provisioning-profile) tasks. – starian chen-MSFT Feb 27 '18 at 02:46
  • @starianchen-MSFT I am using Install Apple Provisioning Profile task and Xcode task where I have enabled the automatic signing in Xcode. I have also added the screenshot in the question – Twinkle Feb 27 '18 at 04:22
  • Can you share the detail log on the OneDrive? – starian chen-MSFT Feb 27 '18 at 05:11
  • @starianchen-MSFT: Find the logs here: https://digitalmettle-my.sharepoint.com/:u:/p/twinkle/Eby_9Tt9nNZOqXJU2UD1jM4BJqPzHF9Ofjhy3AfBiCs-lw?e=tzfxZE – Twinkle Feb 27 '18 at 05:33
  • What's the result if you call xcodebuild command with automatic sign argument (CODE_SIGN_STYLE=Automatic) manually? This thread may help you: https://stackoverflow.com/questions/39500634/use-xcodebuild-xcode-8-and-automatic-signing-in-ci-travis-jenkins-environmen – starian chen-MSFT Feb 27 '18 at 06:33
  • manually I am creating the .ipa from Xcode tool in my mac system. I didn't try this with commands.I am doing the same steps in VSTS task Xcode. Also, added the certificates and provisioning profiles tasks in VSTS. But it is throwing the mentioned error :( . Kindly suggest something. – Twinkle Feb 27 '18 at 07:05
  • It is related to the automatic sign without specify the provisioning profiles, with manual signing way, you can specify Provisioning profile UUID. Just try to call xcodebuild command to automatic sign code and check the result. – starian chen-MSFT Feb 27 '18 at 07:24
  • I run These two commands locally and it worked: xcodebuild -workspace Alcami.xcworkspace -scheme Alcami -sdk iphoneos -configuration AppStoreDistribution archive -archivePath $PWD/build/Alcami.xcarchive xcodebuild -exportArchive -archivePath build/Alcami.xcarchive -exportOptionsPlist exportOptions.plist -exportPath $PWD/build should I disbale the provisioning task from VSTS? – Twinkle Feb 27 '18 at 08:29
  • The issue is related to build command (buildaction) instead of archive, try to specify build as buildaction. – starian chen-MSFT Feb 27 '18 at 08:36
  • I have specified the build as buildaction in VSTS Xcode task. – Twinkle Feb 27 '18 at 08:56
  • Call `xcodebuild build CODE_SIGN_STYLE=Automatic xxx` command manually and check the result. – starian chen-MSFT Feb 27 '18 at 08:58
  • I run this command and it worked manually : xcodebuild -workspace Alcami.xcworkspace \ -scheme CLI \ -destination generic/platform=iOS build CODE_SIGN_STYLE=Automatic – Twinkle Feb 27 '18 at 09:06
  • Do you use Hosted agent when build in VSTS? – starian chen-MSFT Feb 27 '18 at 09:14
  • I am using Hosted Mac preview agent. – Twinkle Feb 27 '18 at 09:17
  • Try to choose Manual signing in Signing Style box and specify Signing identity and Provisioning profile UUID. (Refer to https://learn.microsoft.com/en-us/vsts/build-release/apps/mobile/app-signing?tabs=apple-install-during-build#sign-your-apple-ios-macos-tvos-or-watchos-app) – starian chen-MSFT Feb 27 '18 at 09:21
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/165883/discussion-between-twinkle-and-starian-chen-msft). – Twinkle Feb 27 '18 at 10:13

1 Answers1

0

It didn't work with the automatic signing. I had to manage this with the manual signing. see the attached screenshot.

Add these tasks in the build: enter image description here

And in xcode task enable the manual signing:

enter image description here

Twinkle
  • 394
  • 4
  • 17