Skip to content

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

@vashworth

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

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