Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET Maui app failing to deploy #305

Open
williambuchanan2 opened this issue Jan 7, 2023 · 5 comments
Open

.NET Maui app failing to deploy #305

williambuchanan2 opened this issue Jan 7, 2023 · 5 comments

Comments

@williambuchanan2
Copy link

williambuchanan2 commented Jan 7, 2023

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

  • Server - Azure Pipelines or TFS on-premises? Azure Pipelines

    • If using TFS on-premises, provide the version:

    • If using Azure Pipelines, provide the account name, team project name, build definition name/build number: pdsglobal, PDS, RedSix iOS (DEV)

  • Agent - Hosted or Private: Hosted

    • If using Hosted agent, provide agent queue name: Azure Pipelines

    • If using private agent, provide the OS of the machine running the agent and the agent version:

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
Copy link

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

@williambuchanan2
Copy link
Author

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 DenisRumyantsev self-assigned this Jan 12, 2023
@DenisRumyantsev
Copy link
Contributor

@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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants