Skip to content

Plugin example app fails to build when plugin has dependency on another plugin #188646

Closed

Description

@vashworth
  1. flutter create --template plugin --platform ios my_plugin && cd my_plugin
  2. flutter pub add image_picker_ios
  3. open ios/my_plugin/Package.swift and add .package(name: "image_picker_ios", path: "../image_picker_ios") as a dependency
  4. cd example
  5. flutter build ios

This results in an error:

Xcode failed to resolve Swift Package Manager dependencies:
2026-06-26 15:17:18.437 xcodebuild[38508:11502142]  DVTDeviceOperation: Encountered a build number "" that is incompatible with
DVTBuildVersion.
2026-06-26 15:17:18.438 xcodebuild[38508:11502032] [MT] DVTDeviceOperation: Encountered a build number "" that is incompatible with
DVTBuildVersion.
2026-06-26 15:17:18.828 xcodebuild[38508:11502032] [MT] DVTDeviceOperation: Encountered a build number "" that is incompatible with
DVTBuildVersion.
2026-06-26 15:17:19.168 xcodebuild[38508:11502032] Writing error result bundle to
/var/folders/xw/ky8z400d5ys67zy99pr42lyw011smf/T/ResultBundle_2026-26-06_15-17-0019.xcresult
xcodebuild: error: Could not resolve package dependencies:
  the package at '/Users/vashworth/Development/experiment/my_plugin/ios/image_picker_ios' cannot be accessed
  (/Users/vashworth/Development/experiment/my_plugin/ios/image_picker_ios doesn't exist in file system)

Activity

  1. added
    platform-iosiOS applications specifically
    platform-macosBuilding on or for macOS specifically
    P2Important issues not at the top of the work list
    team-iosOwned by iOS platform team
    triaged-iosTriaged by iOS platform team
    on Jun 26, 2026
  2. vashworth commented on Jun 26, 2026

    @vashworth
    ContributorAuthor

    To fix this, you need to add the dependency (image_picker_ios) in this example as a local package override. However, that doesn't work because image_picker_ios is linked with the plugin version in the symlink name

  3. github-actions commented on Aug 28, 2026

    @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.

  4. locked as resolved and limited conversation to collaborators on Aug 28, 2026
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 specificallyplatform-macosBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions