Unable to publish App to Apple store

Sandeep Reddy Pinniti 1 Reputation point
2024-04-09T01:17:12.25+00:00

Hi,

I'm new to Mobile App Development. I have developed a login page App and trying to deploy the App to Apple store and got this error when running the deploy command. Will you please review the errors and guide me in resolving the issue.

dotnet publish -f net8.0-ios -c Release -p:ServerAddress=XX.X.XX.XX -p:ServerUser=XXXXX.XXXX -p:ServerPassword=XXXXXXXXXXXXXXXXXXXXX -p:ArchiveOnBuild=true -p:_DotNetRootRemoteDirectory=/Users/XXXXX.XXXX/Library/Caches/Xamarin/XMA/SDKs/dotnet/ -p:RuntimeIdentifier=ios-arm64 -p:CodesignKey="Apple Distribution: Company Name (XXXXXXXXXX)" -p:CodesignProvision="XXXXXXXXXXXXXXX"

Errors:

error : /usr/bin/codesign exited with code 1: .csproj::TargetFramework=net8.0-ios
Warning: unable to build chain to self-signed root for signer "Apple Distribution: Company Name (XXXXXXXXXX)" /Library/Caches/Xamarin/mtbs/builds/Biome/e2808ad57af630eec5f6684b6ee9d0d1ae957d80b695f00f3e51f6314fc457b5/bin/Release/net8.0-ios/ios-arm64/Biome.app: errSecInternalComponent

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

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,416 Reputation points Microsoft Vendor
    2024-04-10T03:38:35.01+00:00

    Hello,

    No the Mac device is plugged in physically, it is paired.

    You select Remote Device in the Visual Studio toolbar when publishing the app, right? See the step 2 on the official publishing doc- Publish a .NET MAUI iOS app for App Store distribution - .NET MAUI | Microsoft Learn

    Root CA -- Are you talking about this

    No, the certificate named Apple Worldwide Developer Relations Certificate Authority.

    Xcode Version: Xcode 15.3 - Build version 15E204a

    Xcode 15.3 is not supported yet, you could keep using Xcode15.2. (It's not clear if this is a reason why you cannot publish the app, you could check the above two problems first, and finally troubleshoot the cause.)

    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