Skip to content

MacOS: Codemagic - The installer package includes files that are only readable by the root user (3.22.0) #148354

@AndreiMisiukevich

Description

@AndreiMisiukevich

Steps to reproduce

Regression: #132725

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

2024-05-14 21:01:55.328 *** Error: ERROR: [ContentDelivery.Uploader] 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.

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.19.6 doesn't have this issue.

Also, I've tested on master channel - it does not work too.

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

== Use Xcode 15.3 ==
> sudo xcode-select --switch /Applications/Xcode-15.3.app/Contents/Developer
Xcode 15.3
Build version 15E204a

== Use default version of CocoaPods ==
> gem list '^cocoapods$' --no-verbose
cocoapods (1.14.2)

== Use Java version 11 ==
> java -version
openjdk version "11.0.21" 2023-10-17 LTS
OpenJDK Runtime Environment Zulu11.68+17-CA (build 11.0.21+9-LTS)
OpenJDK 64-Bit Server VM Zulu11.68+17-CA (build 11.0.21+9-LTS, mixed mode)

== Codemagic CLI tools ==
> codemagic-cli-tools version
codemagic-cli-tools 0.51.0
== Use Flutter channel stable ==
> curl --fail --show-error --silent --output flutter_macos_arm64_3.19.6-stable.zip --connect-timeout 10.00 --max-time 120.00 https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_arm64_3.19.6-stable.zip

> 7z -bd x flutter_macos_arm64_3.19.6-stable.zip

7-Zip [64] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.04 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs LE)

Scanning the drive for archives:
1 file, 1169959256 bytes (1116 MiB)

Extracting archive: flutter_macos_arm64_3.19.6-stable.zip
--
Path = flutter_macos_arm64_3.19.6-stable.zip
Type = zip
Physical Size = 1169959256

Everything is Ok

Folders: 2795
Files: 10321
Size:       2650462486
Compressed: 1169959256

Flutter 3.19.6 • Dart 3.3.4

Flutter Doctor output

Doctor output
[✓] Flutter (Channel master, 3.22.0-33.0.pre.20, on macOS 14.3.1 23D60 darwin-arm64, locale en-US)
    • Flutter version 3.22.0-33.0.pre.20 on channel master at /Users/builder/programs/flutter_3_16_7
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4a1e3eaaa2 (26 minutes ago), 2024-05-14 15:58:18 -0500
    • Engine revision ae9ff69a08
    • Dart version 3.5.0 (build 3.5.0-153.0.dev)
    • DevTools version 2.36.0-dev.5

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /usr/local/share/android-sdk
    • Platform android-33, build-tools 33.0.0
    • ANDROID_HOME = /usr/local/share/android-sdk
    • ANDROID_SDK_ROOT = /usr/local/share/android-sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode-15.3.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.14.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] Connected device (3 available)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 14.3.1 23D60 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 14.3.1 23D60 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 123.0.6312.58

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

Labels

P1High-priority issues 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-iosOwned by iOS platform 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