Skip to content

macOS Add to App via --cocoapods flag does not work #144244

Description

@vashworth

Steps to reproduce

Must be on stable or beta flutter branch.

  1. Create macos flutter app
  2. Run flutter build macos-framework --cocoapods --output=some/path/MyApp/Flutter/
  3. Create macos Xcode SwiftUI app project
  4. Within the Xcode project, run pod init
  5. Update podfile to use podspec from macos project
pod 'FlutterMacOS', :podspec => 'some/path/MyApp/Flutter/[build mode]/FlutterMacOS.podspec'
  1. Run pod install

Actual results

This will produce error

Installing FlutterMacOS (3.19.100)
[!] /bin/bash -c
set -e
unzip FlutterMacOS.framework -d FlutterMacOS.framework

unzip:  cannot find or open FlutterMacOS.framework, FlutterMacOS.framework.zip or FlutterMacOS.framework.ZIP.

Logs

Logs
<!-- Paste your logs here -->

Flutter Doctor output

Doctor output
[!] Flutter (Channel master, 3.20.0-13.0.pre.52, on macOS 13.6.4 22G513 darwin-arm64, locale en)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ 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.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.86.2)
[✓] Connected device (4 available)
[✓] Network resources

Activity

  1. vashworth commented on Feb 27, 2024

    @vashworth
    ContributorAuthor

    Should be fixed before documentation is added: #81867

  2. added
    platform-iosiOS applications specifically
    toolAffects the "flutter" command-line tool. See also t: labels.
    team-iosOwned by iOS platform team
    P2Important issues not at the top of the work list
    triaged-iosTriaged by iOS platform team
    on Feb 27, 2024
  3. vashworth commented on Feb 27, 2024

    @vashworth
    ContributorAuthor

    Stable and beta may need to be fixed via CP.

    Also, master needs to be updated to use xcframework

  4. github-actions commented on Mar 19, 2024

    @github-actions

    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.

  5. locked as resolved and limited conversation to collaborators on Mar 19, 2024
  6. added theissue type on Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions