Skip to content

Add FlutterFramework SwiftPM dep - #295

Merged
ngoc-quoc-huynh merged 1 commit into
cosee:mainfrom
alejandro-all-win-software:fix/swiftpm-flutter-framework-dependency
Jun 5, 2026
Merged

Add FlutterFramework SwiftPM dep#295
ngoc-quoc-huynh merged 1 commit into
cosee:mainfrom
alejandro-all-win-software:fix/swiftpm-flutter-framework-dependency

Conversation

@alejandro-all-win-software

Copy link
Copy Markdown
Contributor

DESCRIPTION

  • There's a new section into the migration guide. Now, adding FlutterFramework dependency is required to avoid a new warning.

@ngoc-quoc-huynh

Copy link
Copy Markdown
Collaborator

Thanks for your contribution @alejandro-all-win-software, does this also work for older flutter versions? Currently we allow flutter: '>=3.3.0' and according to the docs it is needed for flutter: '>=3.41.0. See How to add Swift Package Manager support to an existing Flutter plugin.

@alejandro-all-win-software

Copy link
Copy Markdown
Contributor Author

Hey, @ngoc-quoc-huynh. I tried to run the project for Flutter version 3.38.10, but seems like it already requires a newer version of Flutter because of the cosee_lints dependency. I do see that it was updated yesterday by a bot.

Alejandro-castillo@MiniSererLocal2 example % flutter --version
Flutter 3.38.10 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c6f67dede3 (4 months ago) • 2026-02-10 11:05:04 -0800
Engine • hash 3c25ef829c74f0f39fbb8df093d9a6b9f941ea6b (revision cafcda5721) (3 months ago) • 2026-02-06 18:51:35.000Z
Tools • Dart 3.10.9 • DevTools 2.51.1
Alejandro-castillo@MiniSererLocal2 example % flutter pub get
Resolving dependencies... 
The current Dart SDK version is 3.10.9.

Because cosee_lints 0.14.0 requires SDK version ^3.12.0 and no versions of cosee_lints match >0.14.0 <0.15.0, cosee_lints ^0.14.0 is forbidden.
So, because native_image_cropper_example depends on cosee_lints ^0.14.0, version solving failed.


You can try the following suggestion to make the pubspec resolve:
* Try using the Flutter SDK version: 3.44.1. 
Failed to update packages.

So I think that indeed, this need a Flutter version bump.

@ngoc-quoc-huynh

Copy link
Copy Markdown
Collaborator

My bad, I will lower the cosee_lints dependency, since we are not using any new features of it. We try to support a broad flutter range as possible. Gimme some minutes.

@alejandro-all-win-software

Copy link
Copy Markdown
Contributor Author

I verified from another repo that it will still require a Flutter & Dart version bump.

Alejandro-castillo@MiniSererLocal2 example % flutter --version                                  
Flutter 3.38.10 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c6f67dede3 (4 months ago) • 2026-02-10 11:05:04 -0800
Engine • hash 3c25ef829c74f0f39fbb8df093d9a6b9f941ea6b (revision cafcda5721) (3 months ago) • 2026-02-06 18:51:35.000Z
Tools • Dart 3.10.9 • DevTools 2.51.1
Alejandro-castillo@MiniSererLocal2 example % flutter run
Launching lib/main.dart on iPhone 16 Pro in debug mode...
Error: Unable to get Xcode project information:
 2026-06-05 10:26:18.093 xcodebuild[53057:376639] Writing error result bundle to
 /var/folders/nk/ymy1573n0sj_09kdrbknr8mh0000gw/T/ResultBundle_2026-05-06_10-26-0018.xcresult
xcodebuild: error: Could not resolve package dependencies:
  the package at '/Users/Alejandro-castillo/Developer/flutter_vibration/vibration/ios/FlutterFramework' cannot be accessed (Error
  Domain=NSCocoaErrorDomain Code=260 "The folder “FlutterFramework” doesn’t exist." UserInfo={NSUserStringVariant=(

@ngoc-quoc-huynh

Copy link
Copy Markdown
Collaborator

Yeah, I'm having problems downgrading everything. I guess I'll just update it.

@ngoc-quoc-huynh

Copy link
Copy Markdown
Collaborator

LGTM, thanks for your contribution!

@ngoc-quoc-huynh
ngoc-quoc-huynh merged commit ab18809 into cosee:main Jun 5, 2026
4 checks passed
@alejandro-all-win-software
alejandro-all-win-software deleted the fix/swiftpm-flutter-framework-dependency branch June 5, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants