-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listplatform-iosiOS applications specificallyiOS applications specificallyplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
Steps to reproduce
flutter config --enable-swift-package-managerflutter create --template=plugin --platforms=ios plugin_one- Create file
plugin_one/ios/plugin_one/Sources/same_name/File.swift - In
plugin_one/ios/plugin_one/Package.swift, add the following
targets: [
.target(
name: "plugin_one",
dependencies: [
+ "same_name",
],
resources: [
.process("Resources"),
]
),
+ .target(
+ name: "same_name",
+ dependencies: []
+ )
]flutter create --template=plugin --platforms=ios plugin_two- Create file
plugin_two/ios/plugin_two/Sources/same_name/File.swift - In
plugin_two/ios/plugin_two/Package.swift, add the following
targets: [
.target(
name: "plugin_two",
dependencies: [
+ "same_name",
],
resources: [
.process("Resources"),
]
),
+ .target(
+ name: "same_name",
+ dependencies: []
+ )
]- In
plugin_two/example/pubspec.yaml, add a dependency on plugin_one
dependencies:
flutter:
sdk: flutter
plugin_two:
# When depending on this package from a real application you should use:
# plugin_two: ^x.y.z
# See https://dart.dev/tools/pub/dependencies#version-constraints
# The example app is bundled with the plugin so we use a path dependency on
# the parent directory to use the current plugin's version.
path: ../
+ plugin_one:
+ path: [insert path to plugin_one]- In
plugin_two/example, runflutter build ios --no-codesign
Actual results
This results in error:
Unable to get Xcode project information:
2024-05-15 15:26:42.700 xcodebuild[26094:19473636] Writing error result bundle to
/var/folders/xw/ky8z400d5ys67zy99pr42lyw011smf/T/ResultBundle_2024-15-05_15-26-0042.xcresult
xcodebuild: error: Could not resolve package dependencies:
multiple targets named 'same_name' in: 'plugin_one', 'plugin_two'; consider using the `moduleAliases` parameter in manifest to
provide unique names
Logs
Logs
<!-- Paste your logs here -->
Flutter Doctor output
Doctor output
<!-- Paste your output here -->
josxha
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listplatform-iosiOS applications specificallyiOS applications specificallyplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team