microsoft / app-store-vsts-extension

Visual Studio Team Services (VSTS) extension for performing continuous delivery to the App Store store from your automated CI builds
Other
93 stars 53 forks source link

.NET Maui app failing to deploy #305

Open williambuchanan2 opened 1 year ago

williambuchanan2 commented 1 year ago

Question, Bug, or Feature?
Type: Bug

Enter Task Name: AppStoreRelease@1 / DotNetCoreCLI@2

list here (V# not needed):
https://github.com/microsoft/app-store-vsts-extension/tree/master/Tasks

Environment

Issue Description

[Include task name(s), screenshots and any other relevant details] I have the attached yaml in my pipeline. We have been trying for months to get it working but so far unable to find any help with it. The project builds, but problem seems to be the ipa file is not getting signed (I deduced that from running it through altool). It fails at the AppStoreRelease task.

Would appreciate if someone can check the yaml is right (so far have been unable to find any examples of yaml for Maui online), or if this is a bug, or we are doing something wrong.

RedSix iOS (DEV) (1).zip

Task logs

[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution] logs_29895.zip

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Error logs

Below is the error from altool:

=======================================
2022-12-27 14:08:12.329 DEBUG: BuildID 'e66d0357-ed8c-471d-b2e9-060bfd6f71c9' was deleted.
2022-12-27 14:08:12.329  INFO: Show Progress: Verify failed.
Asset validation failed
Missing or invalid signature. The bundle 'com.bravo6.redsix' at bundle path 'Payload/PDS.App.RedSix.app' is not signed using an Apple submission certificate. (ID: 0568c6ff-cb5e-425c-892d-f47a51ef152d)
2022-12-27 14:08:12.330  INFO: 
=============
VERIFY FAILED with 1 error.
=============
2022-12-27 14:08:12.330 Waiting for 1 operations to complete
2022-12-27 14:08:12.331 ITunesSoftwareServiceFileLogging cleaning up
2022-12-27 14:08:12.333 *** Error: Validation failed for 'PDS.App.RedSix.ipa'.
2022-12-27 14:08:12.333 *** Error: Asset validation failed Missing or invalid signature. The bundle 'com.bravo6.redsix' at bundle path 'Payload/PDS.App.RedSix.app' is not signed using an Apple submission certificate. (ID: 0568c6ff-cb5e-425c-892d-f47a51ef152d) (90034)
 {
    NSLocalizedDescription = "Asset validation failed";
    NSLocalizedFailureReason = "Missing or invalid signature. The bundle 'com.bravo6.redsix' at bundle path 'Payload/PDS.App.RedSix.app' is not signed using an Apple submission certificate. (ID: 0568c6ff-cb5e-425c-892d-f47a51ef152d)";
    "original_server_error" =     {
        code = "STATE_ERROR.VALIDATION_ERROR.90034";
        detail = "Missing or invalid signature. The bundle 'com.bravo6.redsix' at bundle path 'Payload/PDS.App.RedSix.app' is not signed using an Apple submission certificate.";
        id = "0568c6ff-cb5e-425c-892d-f47a51ef152d";
        status = 409;
        title = "Asset validation failed";
    };
}
2022-12-27 14:08:12.336 ‘IosApplicationArchiveExpander’, cleanupDestinationDirectory: ‘/var/folders/38/7jmxj9cx4f9_8rp8mwlbkrn00000gn/T/PDS.App.RedSix.ipa’

The error from the azure pipeline is unhelpful:

##[error]Error: The process '/usr/local/lib/ruby/gems/3.0.0/bin/fastlane' failed with exit code 1
Roman-Shchukin commented 1 year ago

Hi @williambuchanan2 thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.

williambuchanan2 commented 1 year ago

Hi @williambuchanan2 thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.

Thanks for the update. So can you confirm that other users are able to build and deploy .net 7 Maui iOS apps? Am I the only person affected by this? I ask because my project literally has nothing in it so can't see why there would be a problem...

DenisRumyantsev commented 1 year ago

@williambuchanan2 could you share the pipeline yml file that contains the AppStoreRelease task? I found it in shared build logs, but I did not find it in the shared RedSix iOS (DEV) (1).yml file. So, could you share exactly the same pipeline yml file that is used in your project?

my project literally has nothing in it

If so, could you share your project with me (only if it really does not contain private/personal/sensitive data), or create a sample test project, just to reproduce this issue?

williambuchanan2 commented 1 year ago

Hi Denis This is the appstore release step. I gave up using it in the end.

- task: AppStoreRelease@1
  inputs:
    serviceEndpoint: 'XXX App Store Connection'
    releaseTrack: TestFlight
    appIdentifier: 'com.XXX.xxx'
    appType: iOS
    appSpecificId: '999999999'
    ipaPath: '$(Build.ArtifactStagingDirectory)/**/*.ipa'
    shouldSkipWaitingForProcessing: false
williambuchanan2 commented 1 year ago

Forgot to mention - the empty project was just the default one you get with maui (the click count demo).