[MacOS] unsealed contents present in the bundle root Command CodeSign failed with a nonzero exit code

This issue has been tracked since 2023-03-17.

Is there an existing issue for this?

Steps to reproduce

I created a new flutter project from the CLI with support for iOS, macOS, Android and web, I also installed flutterfire to configure firebase. I installed these Packages:

firebase_core: ^2.4.1
firebase_crashlytics: ^3.0.11
firebase_dynamic_links: ^5.0.15
cloud_firestore: ^4.4.4

I have created a Dev and Prod Flavor. For each flavor, I created an own runner config. Inside the iOS and macOS Folder, I created a config folder with a dev and prod subfolder with the GoogleService-Info.plist and the .JSON file in it. The config Folder gets created in the Finder and then drag'n dropped into Xcode, the same with the .JSON and GoogleService-Info.plist file(s).
iOS runs and build perfectly fine on Simulator as well as the physical Device, with each Flavor also accessing each Firebase Project.

macOS on the other Hand only builds when I change the name of the GoogleService-Info.plist file, but then I can't use Firebase. If I leave the "normal Name" it throws this error: unsealed contents present in the bundle root Command CodeSign failed with a nonzero exit code.

Actual results

iOS Build fine
macOS only builds when GoogleService-info.plist is changed to a different name, but then FIrebase can't be used.

Logs

Logs
unsealed contents present in the bundle root Command CodeSign failed with a nonzero exit code

Flutter Doctor output

Please Ignore the Android Warning. I use Android Studio Preview Giraffe that shows this warning, but when i run flutter doctor --android-licenses I get no error.

Doctor output
[✓] Flutter (Channel master, 3.9.0-9.0.pre.8, on macOS 13.2.1 22D68 darwin-arm64, locale de-DE)
    • Flutter version 3.9.0-9.0.pre.8 on channel master at /opt/homebrew/Caskroom/flutter/3.7.0/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 09cc1c4cda (32 hours ago), 2023-03-16 09:18:57 +0100
    • Engine revision 3194afad72
    • Dart version 3.0.0 (build 3.0.0-322.0.dev)
    • DevTools version 2.22.2

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/blackbox/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.0

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

[✓] Android Studio (version 2022.1)
    • 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.15+0-b2043.56-8887301)

[✓] VS Code (version 1.76.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.60.0

[✓] Connected device (2 available)
    • iPhone 14 Pro Max (mobile) • CENSORED• ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 111.0.5563.64

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

! Doctor found issues in 2 categories.
TheGlorySaint wrote this answer on 2023-03-18

Might my Issue be related to #64088 ?

More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2023-03-30
Star Count 151602
Watcher Count 3555
Fork Count 25000
Issue Count 11498

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date