You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plugin example app fails to build when plugin has dependency on another plugin #188646
flutter create --template plugin --platform ios my_plugin && cd my_plugin
flutter pub add image_picker_ios
open ios/my_plugin/Package.swift and add .package(name: "image_picker_ios", path: "../image_picker_ios") as a dependency
cd example
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)
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
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.
Activity
vashworth commentedon Jun 26, 2026
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
Refactor SwiftPM symlink path logic (flutter#188647)
github-actions commentedon Aug 28, 2026
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 -vand a minimal reproduction of the issue.