Unable to archive iOS apps

punio 0 Reputation points

Archiving iOS app in Visual Studio for Mac does not archive anything without error.

I didn't know the cause, so I recreated the project, set the signature and archived it, and it worked normally.

However, when I tried to archive the same project the next day with only update version number, the archiving process did not work properly.

When I compared the build logs, the Code Signing Key was not in the log.

  • Success
Detected signing identity:
  Code Signing Key: "Apple Distribution: **** (D2________)" **
  Provisioning Profile: "***" (***)
  Bundle Id: com.xxx.yyy
  App Id: D2________.com.xxx.yyy

  • Failure
Detected signing identity:
  Provisioning Profile: "***" (***)
  Bundle Id: com.xxx.yyy
  App Id: com.xxx.yyy

The Provisioning Profile is the same, but the App Id is different because there is no Code Signing Key.

There is always no Code Signing Key line in the log when the archive does not work properly, so I'm trying to solve this problem first, but I don't know how to solve it.

Do you have any solution?

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,837 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,841 Reputation points Microsoft Vendor


    The APP ID is unique, the second project's ID will be different from the one in the first project.
    You can open your two projects by VS for Mac, then go to Properties->Build->AppInfo->Application ID, and make sure the Application ID is same.
    After that, you can go to iOS->Bundle Signing, and select the distribution provisioning profile again.

    Best Regards,

    Wenyan Zhang

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments