Handling package interdependencies for iOS needs to be updated to SwiftPM
- Dominant language
- Dart
- Stars
- 3.1k
- Forks
- 3.5k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 95
Description
### Page URL
https://docs.flutter.dev/packages-and-plugins/developing-packages#ios
### Page source
_No response_
### Describe the problem
The documentation is currently for CocoaPods. SwiftPM is now the default.
### Expected fix
The SwiftPM instructions should say something like
The following example sets a dependency for other_plugin in my_plugin/ios/my_plugin/Package.swift:
```
let package = Package(
...
dependencies: [
.package(name: "other_plugin", path: "../other_plugin"),
...
```
You can now `import other_plugin` and access the source code at my_plugin/ios/my_plugin/Sources.
For additional details on Swift package manifests, see the [Apple's Documentation](https://developer.apple.com/documentation/packagedescription).
### Additional context
_No response_
### I would like to fix this problem.
- [ ] I will try and fix this problem on docs.flutter.dev.
Contributor guide
Assessment
This issue has not been assessed yet.