21.4 C
New York
Thursday, September 19, 2024

ios – GitHub Actions for .internet maui to TestFlight is not possible?


identify: Deploy to TestFlight

on:
push:
branches:
– quality-assurance

jobs:
construct:
runs-on: macos-latest

steps:
  - identify: Checkout repository
    makes use of: actions/checkout@v3

  - identify: Arrange .NET
    makes use of: actions/setup-dotnet@v2
    with:
      dotnet-version: '8.x'

  - identify: Set up MAUI workload
    run: dotnet workload set up maui

  - identify: Set up certificates
    makes use of: apple-actions/import-codesign-certs@v3
    with:
      p12-file-base64: ${{ secrets and techniques.CERTIFICATE_P12_BASE_64 }}
      p12-password: ${{ secrets and techniques.CERTIFICATE_PASSWORD_P12 }}

  - identify: Obtain provisioning profiles
    makes use of: apple-actions/download-provisioning-profiles@v1
    with:
      bundle-id: 'com.myprivatebundle.appid'
      issuer-id: ${{ secrets and techniques.APP_STORE_CONNECT_ISSUER_ID }}
      api-key-id: ${{ secrets and techniques.APP_STORE_CONNECT_KEY_ID }}
      api-private-key: ${{ secrets and techniques.APP_STORE_CONNECT_PRIVATE_KEY }}

  - identify: Construct .NET MAUI iOS app
    run: dotnet publish -c Launch -f:net8.0-ios /p:ArchiveOnBuild=true /p:EnableAssemblyILStripping=false

  - identify: Add IPA to TestFlight
    makes use of: apple-actions/upload-testflight-build@v1
    with:
      app-path: 'MyApp/bin/Launch/net8.0-ios/ios-arm64/publish/*.ipa'
      api-key-id: ${{ secrets and techniques.APP_STORE_CONNECT_KEY_ID }}
      api-private-key: ${{ secrets and techniques.APP_STORE_CONNECT_PRIVATE_KEY }}
      issuer-id: ${{ secrets and techniques.APP_STORE_CONNECT_ISSUER_ID }}

the problem(s):

construct
{
“errors”: [{
“status”: “401”,
“code”: “NOT_AUTHORIZED”,
“title”: “Authentication credentials are missing or invalid.”,
“detail”: “Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens”
}]
}

construct
The next actions makes use of node12 which is deprecated and will probably be compelled to run on node16: apple-actions/download-provisioning-profiles@v1. For more information: https://github.weblog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/

construct
The next actions use a deprecated Node.js model and will probably be compelled to run on node20: actions/checkout@v3, actions/setup-dotnet@v2, apple-actions/download-provisioning-profiles@v1. For more information: https://github.weblog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

I’ve checked that the; secrets and techniques are all right, the cert is right, all of it appears to be right.. Nonetheless I get this NOT_AUTHORIZED concern.

Any advise could be tremendously appreciated.

Sort regards,
Rob.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles