Skip to content

The installer package includes files that are only readable by the root user (3.13.0) #132725

Closed
@adil192

Description

@adil192

Is there an existing issue for this?

Steps to reproduce

Follow https://docs.flutter.dev/deployment/macos#create-a-build-archive-with-codemagic-cli-tools up to and including app-store-connect publish --path "$PACKAGE_NAME"

Expected results

Publishing to the App Store works

Actual results

2023-08-17 01:59:37.169  INFO: Show Progress: Waiting for App Store Connect SPI analysis response…
2023-08-17 02:01:23.077  INFO: Show Progress: Upload failed.
Asset validation failed
The installer package includes files that are only readable by the root user. This will prevent verification of the application's code signature when your app is run. Ensure that non-root users can read the files in your app. (ID: 7e9d5e25-9883-4df3-a89f-b2816e3e1723)
2023-08-17 02:01:23.077  INFO: 
=============
UPLOAD FAILED with 1 error.
=============
{"tool-version":"6.043.14043","tool-path":"\/Applications\/Xcode_14.2.app\/Contents\/SharedFrameworks\/ContentDeliveryServices.framework\/Versions\/A\/Frameworks\/AppStoreService.framework","os-version":"12.6.7","product-errors":[{"message":"Asset validation failed","userInfo":{"NSLocalizedFailureReason":"The installer package includes files that are only readable by the root user. This will prevent verification of the application's code signature when your app is run. Ensure that non-root users can read the files in your app. (ID: 7e9d5e25-9883-4df3-a89f-b2816e3e1723)","NSLocalizedDescription":"Asset validation failed","original_server_error":{"status":"409","id":"7e9d5e25-9883-4df3-a89f-b2816e3e1723","code":"STATE_ERROR.VALIDATION_ERROR.90255","title":"Asset validation failed","detail":"The installer package includes files that are only readable by the root user. This will prevent verification of the application's code signature when your app is run. Ensure that non-root users can read the files in your app."}},"code":90255}]}


Failed to upload archive at "build/macos/Build/Products/Release/Ricochlime.pkg"
Failed to publish build/macos/Build/Products/Release/Ricochlime.pkg
Error: Process completed with exit code 1.

Code sample

I haven't been able to reproduce this since to get to the point of publishing to the App Store, you need to set up all of the certificates etc. I'm guessing this occurs in a blank Flutter project though.

I can confirm, however, that reverting to Flutter 3.10.6 doesn't have this issue.

Screenshots or Video

No response

Logs

Logs
Publish "build/macos/Build/Products/Release/Ricochlime.pkg" to App Store Connect
Bundle identifier: com.adilhanney.ricochlime
Install size: 51919KB
Version code: 5000
Version: 0.5.0

Upload "build/macos/Build/Products/Release/Ricochlime.pkg" to App Store Connect
2023-08-17 01:58:52.863  INFO: ContentDelivery version 2.141.101 (141101).
2023-08-17 01:58:52.866  INFO: Show Progress: Contacting Apple Services…
2023-08-17 01:58:53.253  INFO: Received build ID: 2ad9c639-c1cd-428d-8852-fda1f2482567
2023-08-17 01:58:53.254  INFO: Show Progress: Making copy of ‘Ricochlime.pkg’…
2023-08-17 01:58:53.258  INFO: Show Progress: Preparing to upload ‘Ricochlime.pkg’…
2023-08-17 01:58:53.323  INFO: Show Progress: Analyzing package…
2023-08-17 01:59:27.503  INFO: Show Progress: Sending analysis to App Store Connect…
2023-08-17 01:59:27.658  INFO: COMPLETED - PART 1 - asset-description-7A7A7DB4-CA1D-4C43-8C0C-6C16908C3832.xml - eTag: "13390147FC1CACB9B3A15C2BAFE1905F"
2023-08-17 01:59:27.662  INFO: Show Progress: Waiting for App Store Connect analysis response…
2023-08-17 01:59:36.215 *** Error: ERROR: Asset validation failed (90255) The installer package includes files that are only readable by the root user. This will prevent verification of the application's code signature when your app is run. Ensure that non-root users can read the files in your app. (ID: 7e9d5e25-9883-4df3-a89f-b2816e3e1723)
2023-08-17 01:59:36.663  INFO: Show Progress: Sending SPI analysis to App Store Connect…
2023-08-17 01:59:36.994  INFO: COMPLETED - PART 1 - DTAppAnalyzerExtractorOutput-80C2D7FD-2FBA-4C4C-933E-D64EBF5B72D2.zip - eTag: "A3D0EA536B66AEADC014CD3643C3C615"
2023-08-17 01:59:37.077  INFO: COMPLETED - PART 4 - DTAppAnalyzerExtractorOutput-80C2D7FD-2FBA-4C4C-933E-D64EBF5B72D2.zip - eTag: "9E53CF42A803A4BC10D6521FD748E71B"
2023-08-17 01:59:37.092  INFO: COMPLETED - PART 2 - DTAppAnalyzerExtractorOutput-80C2D7FD-2FBA-4C4C-933E-D64EBF5B72D2.zip - eTag: "11355DC834E9AF31B82E04048AA496B1"
2023-08-17 01:59:37.165  INFO: COMPLETED - PART 3 - DTAppAnalyzerExtractorOutput-80C2D7FD-2FBA-4C4C-933E-D64EBF5B72D2.zip - eTag: "F1A76EEED562D78C1171AAC230695A1B"
2023-08-17 01:59:37.169  INFO: Show Progress: Waiting for App Store Connect SPI analysis response…
2023-08-17 02:01:23.077  INFO: Show Progress: Upload failed.
Asset validation failed
The installer package includes files that are only readable by the root user. This will prevent verification of the application's code signature when your app is run. Ensure that non-root users can read the files in your app. (ID: 7e9d5e25-9883-4df3-a89f-b2816e3e1723)
2023-08-17 02:01:23.077  INFO: 
=============
UPLOAD FAILED with 1 error.
=============
{"tool-version":"6.043.14043","tool-path":"\/Applications\/Xcode_14.2.app\/Contents\/SharedFrameworks\/ContentDeliveryServices.framework\/Versions\/A\/Frameworks\/AppStoreService.framework","os-version":"12.6.7","product-errors":[{"message":"Asset validation failed","userInfo":{"NSLocalizedFailureReason":"The installer package includes files that are only readable by the root user. This will prevent verification of the application's code signature when your app is run. Ensure that non-root users can read the files in your app. (ID: 7e9d5e25-9883-4df3-a89f-b2816e3e1723)","NSLocalizedDescription":"Asset validation failed","original_server_error":{"status":"409","id":"7e9d5e25-9883-4df3-a89f-b2816e3e1723","code":"STATE_ERROR.VALIDATION_ERROR.90255","title":"Asset validation failed","detail":"The installer package includes files that are only readable by the root user. This will prevent verification of the application's code signature when your app is run. Ensure that non-root users can read the files in your app."}},"code":90255}]}


Failed to upload archive at "build/macos/Build/Products/Release/Ricochlime.pkg"
Failed to publish build/macos/Build/Products/Release/Ricochlime.pkg
Error: Process completed with exit code 1.

Flutter Doctor output

Doctor output

Note that this was run on the GitHub Actions runner:

  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev/                  ║
  ║                                                                            ║
  ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
  ║ statistics and basic crash reports. This data is used to help improve      ║
  ║ Flutter tools over time.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ Note: The Google Privacy Policy describes how data is handled in this      ║
  ║ service.                                                                   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://flutter.dev/docs/reference/crash-reporting                         ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://policies.google.com/privacy                                        ║
  ╚════════════════════════════════════════════════════════════════════════════╝
Could not parse java version from: 
If there is a version please look for an existing bug https://github.com/flutter/flutter/issues/ and if one does not exist file a new issue.
[✓] Flutter (Channel stable, 3.13.0, on macOS 12.6.7 21G651 darwin-x64, locale en)
    • Flutter version 3.13.0 on channel stable at /Users/runner/hostedtoolcache/flutter/stable-3.13.0-x64
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision efbf63d9c6 (25 hours ago), 2023-08-15 21:05:06 -0500
    • Engine revision 1ac611c64e
    • Dart version 3.1.0
    • DevTools version 2.25.0
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/runner/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/runner/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/runner/Library/Android/sdk
    • Java binary at: /Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.382-5/x64/Contents/Home/bin/java
    ✗ Could not determine java version
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode_14.2.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.1
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 12.6.7 21G651 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 115.0.5790.170
[✓] Network resources
    • All expected network resources are available.
! Doctor found issues in 2 categories.
The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic data
along with package dependencies, and crash reporting to send basic crash reports.
This data is used to help improve the Dart platform, Flutter framework, and related tools.
Telemetry is not sent on the very first run.
To disable reporting of telemetry, run this terminal command:
flutter --disable-telemetry.
If you opt out of telemetry, an opt-out event will be sent,
and then no further information will be sent.
This data is collected in accordance with the
Google Privacy Policy (https://policies.google.com/privacy).

Edit: This is also happening with Saber (another one of my apps).

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: buildBuilding flutter applications with the toola: desktopRunning on desktopc: regressionIt was better in the past than it is nowplatform-macBuilding on or for macOS specificallyr: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamworkaround availableThere is a workaround available to overcome the issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions