leanflutter / flutter_distributor

An all-in-one Flutter application packaging and distribution tool, providing you with a one-stop solution to meet various distribution needs.
https://distributor.leanflutter.dev/
MIT License
835 stars 116 forks source link

macOS使用appstore publisher时,报provision profile无效的错误 #126

Open yohom opened 1 year ago

yohom commented 1 year ago

直接使用flutter build macos然后在xcode中archive可以上传到appstoreconnect,但是用flutter_distributor不行。 配置脚本:

  # macOS appstore
  - name: macstore
    jobs:
      - name: release-prod-macos
        package:
          platform: macos
          target: zip
          build_args:
            verbose:
            release: true
            dart-define:
              APP_ENV: prod
              SANDBOX: true
        publish_to: appstore

错误信息:

NSUnderlyingError = "Error Domain=IrisAPI Code=-19241 \"Asset validation failed\" UserInfo={status=409, detail=Invalid Provisioning Profile. The provisioning profile included in the bundle *** is invalid. [Invalid 'com.apple.developer.aps-environment' entitlement value.] For more information, visit the macOS Developer Portal., id=58a2ee5a-fcc3-4d5f-94f6-d482f09a8c9d, code=STATE_ERROR.VALIDATION_ERROR.90283, title=Asset validation failed, NSLocalizedFailureReason=Invalid Provisioning Profile. The provisioning profile included in the bundle *** is invalid. [Invalid 'com.apple.developer.aps-environment' entitlement value.] For more information, visit the macOS Developer Portal., NSLocalizedDescription=Asset validation failed}";
    "iris-code" = "STATE_ERROR.VALIDATION_ERROR.90283";
}
lijy91 commented 1 year ago

appstore publisher 似乎不支持 macos。