question

ZuzannaCzaja-9338 avatar image
0 Votes"
ZuzannaCzaja-9338 asked WenyanZhang-MSFT commented

Problem with publish app on iOS platform

I have problem with publish project on iOS platform. I have error:

Code signing must be enabled to create an Xcode archive.

I don't have idea how fix it.

I try this solution:
https://stackoverflow.com/questions/72440792/ios-code-signing-key-apple-distribution-my-name-xxxxxx-not-found-in-keycha

but this solution isn't for me.

dotnet-maui
· 12
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ZuzannaCzaja-9338 , For further investigation, could you please provide the detailed error message, your environment info and what you have tried? As noted in the Q&A FAQ: How to write a quality question.

In addition, you could check the element( <CodesignKey>‌Apple Distribution: xxx</CodesignKey> ) in the csproj of your project. Or you can open the Properties window, go to iOS->Bundle Signing , then check if you select the correct provisioning profile.
Please refer to the doc- Publish a .NET MAUI app for iOS - .NET MAUI | Microsoft Docs and check if any steps are missing.(The video in the thread you mentioned also works)


0 Votes 0 ·

I tried everything. I checkes CodesignKey, I tried to change Automatic Provisioning to Manual Provisioning. I did all steps many times. And I still don't have idea what I do wrong.

239996-image.png


0 Votes 0 ·
image.png (15.2 KiB)

You choose Distribution(Automatic), it woks, right? If so, you can check if there is a valid profile under the drop-down menu.

0 Votes 0 ·
Show more comments

Hi @ZuzannaCzaja-9338 , May I know whether your issue has been solved or not? If not, please share it in here. We can work together to figure it out.

0 Votes 0 ·

0 Answers