Giter VIP home page Giter VIP logo

Comments (8)

huycozy avatar huycozy commented on September 26, 2024

Hi @stephane-archer
Could you narrow this down by checking on a simple Flutter project (newly created one first?) by removing one-by-one dependency above to see if one of them causes the issue?

Please provide the Flutter version you are using as well (the output of flutter doctor -v), thanks!

from flutter.

stephane-archer avatar stephane-archer commented on September 26, 2024

@huycozy the issue looks to be linked with the default behavior of zip, do you know if there is any symlink when exporting a Signed and Notarized App? I'm still figuring out what is going on. The System GUI version of zip doesn't break the application signature.

from flutter.

stephane-archer avatar stephane-archer commented on September 26, 2024
zip -r --symlinks

these options solve the problem
Do you know why would they be symlinks in the generated .app?

from flutter.

stephane-archer avatar stephane-archer commented on September 26, 2024

Here is the list of all the symlinks that are included in the final bundle.
Why are there any symlinks? Is it a Flutter bug?

fd -u --type symlink '.' Lutme.app/
Lutme.app/Contents/Frameworks/App.framework/App
Lutme.app/Contents/Frameworks/App.framework/Resources
Lutme.app/Contents/Frameworks/App.framework/Versions/Current
Lutme.app/Contents/Frameworks/FBLPromises.framework/FBLPromises
Lutme.app/Contents/Frameworks/FBLPromises.framework/Resources
Lutme.app/Contents/Frameworks/FBLPromises.framework/Versions/Current
Lutme.app/Contents/Frameworks/FirebaseCore.framework/FirebaseCore
Lutme.app/Contents/Frameworks/FirebaseCore.framework/Resources
Lutme.app/Contents/Frameworks/FirebaseCore.framework/Versions/Current
Lutme.app/Contents/Frameworks/FirebaseCoreInternal.framework/FirebaseCoreInternal
Lutme.app/Contents/Frameworks/FirebaseCoreInternal.framework/Resources
Lutme.app/Contents/Frameworks/FirebaseCoreInternal.framework/Versions/Current
Lutme.app/Contents/Frameworks/FirebaseInstallations.framework/FirebaseInstallations
Lutme.app/Contents/Frameworks/FirebaseInstallations.framework/Resources
Lutme.app/Contents/Frameworks/FirebaseInstallations.framework/Versions/Current
Lutme.app/Contents/Frameworks/FlutterMacOS.framework/FlutterMacOS
Lutme.app/Contents/Frameworks/FlutterMacOS.framework/Resources
Lutme.app/Contents/Frameworks/FlutterMacOS.framework/Versions/Current
Lutme.app/Contents/Frameworks/GoogleUtilities.framework/GoogleUtilities
Lutme.app/Contents/Frameworks/GoogleUtilities.framework/Resources
Lutme.app/Contents/Frameworks/GoogleUtilities.framework/Versions/Current
Lutme.app/Contents/Frameworks/desktop_drop.framework/Resources
Lutme.app/Contents/Frameworks/desktop_drop.framework/Versions/Current
Lutme.app/Contents/Frameworks/desktop_drop.framework/desktop_drop
Lutme.app/Contents/Frameworks/nanopb.framework/Resources
Lutme.app/Contents/Frameworks/nanopb.framework/Versions/Current
Lutme.app/Contents/Frameworks/nanopb.framework/nanopb
Lutme.app/Contents/Frameworks/path_provider_foundation.framework/Resources
Lutme.app/Contents/Frameworks/path_provider_foundation.framework/Versions/Current
Lutme.app/Contents/Frameworks/path_provider_foundation.framework/path_provider_foundation

from flutter.

stephane-archer avatar stephane-archer commented on September 26, 2024
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.5 23F79 darwin-x64, locale en-GB)
    • Flutter version 3.22.0 on channel stable at /Users/fractale/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5dcb86f68f (2 weeks ago), 2024-05-09 07:39:20 -0500
    • Engine revision f6344b75dc
    • Dart version 3.4.0
    • DevTools version 2.34.3

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/fractale/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ 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 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

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

[✓] Android Studio (version 2022.2)
    • 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 17.0.6+0-17.0.6b802.4-9586694)

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 14.5 23F79 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 125.0.6422.77

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

! Doctor found issues in 1 category.

from flutter.

stuartmorgan avatar stuartmorgan commented on September 26, 2024

Symlinks are an inherent part of framework structure on macOS; questions about why would need to be directed to Apple.

Closing as nothing described here is specific to Flutter, and is expected behavior on macOS that the Flutter team does not control.

from flutter.

stephane-archer avatar stephane-archer commented on September 26, 2024

@stuartmorgan I understand now, a hint in the documentation that symlink needs to be preserved would have removed a lot of pain on my side. https://docs.flutter.dev/deployment/macos
the default behavior of zip just broke MacApps in general...

from flutter.

github-actions avatar github-actions commented on September 26, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

from flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.