flutter_share_me
flutter_share_me copied to clipboard
Does not compile for iOS
Hello, The app does not compile: here's the trace: Xcode's output: ↳ leveldb-library-byfjndjolxototdyoiotufacpcvp /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_share_me-1.2.0/ios/Classes/SwiftFlutterShareMePlugin.swift:189:25: error: 'init()' is unavailable let shareDialog=ShareDialog() ^~~~~~~~~~~ FBSDKShareKit.ShareDialog:4:12: note: 'init()' has been explicitly marked unavailable here public init() ^ /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_share_me-1.2.0/ios/Classes/SwiftFlutterShareMePlugin.swift:194:20: error: incorrect argument label in call (have 'fromViewController:content:delegate:', expected 'viewController:content:delegate:') ShareDialog(fromViewController: viewController, content: shareContent, delegate: self).show() ^~~~~~~~~~~~~~~~~~~ viewController /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_share_me-1.2.0/ios/Classes/SwiftFlutterShareMePlugin.swift:189:25: error: 'init()' is unavailable let shareDialog=ShareDialog() ^~~~~~~~~~~ FBSDKShareKit.ShareDialog:4:12: note: 'init()' has been explicitly marked unavailable here public init() ^ /Applications/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_share_me-1.2.0/ios/Classes/SwiftFlutterShareMePlugin.swift:194:20: error: incorrect argument label in call (have 'fromViewController:content:delegate:', expected 'viewController:content:delegate:') ShareDialog(fromViewController: viewController, content: shareContent, delegate: self).show() ^~~~~~~~~~~~~~~~~~~ viewController
Thanks for your help.
Same here
Can you try with this? I fixed in a pull request.
https://github.com/OpenFlutter/flutter_share_me/pull/67
In your pubspec.yaml
flutter_share_me:
git:
url: https://github.com/hukjordanjanaq/flutter_share_me
Thanks, compilation ok now, but problem at execution (I don't know if it is related) ======== Exception caught by Flutter framework ===================================================== The following assertion was thrown during a service extension callback for "ext.flutter.inspector.setSelectionById": Id does not exist.
When the exception was thrown, this was the stack:
#0 WidgetInspectorService.toObject (package:flutter/src/widgets/widget_inspector.dart:1302:7)
#1 WidgetInspectorService.setSelectionById (package:flutter/src/widgets/widget_inspector.dart:1364:25)
#2 WidgetInspectorService._registerServiceExtensionWithArg.
https://stackoverflow.com/a/66940545/8832753
Many thanks !
Can you try with this? I fixed in a pull request.
#67
In your pubspec.yaml
flutter_share_me: git: url: https://github.com/jordanjanaq/flutter_share_me
is it possible to share a msg + image to a specific whatsapp number ?
I'm not really sure, but you can't try with this and check if it works. I didn't use it but it seems it has a func to share to a number phone with file.
https://pub.dev/packages/whatsapp_share
I'm not really sure, but you can't try with this and check if it works. I didn't use it but it seems it has a func to share to a number phone with file.
https://pub.dev/packages/whatsapp_share
thank you for your valuable feedback i couldn't run the project after installing this new package due to issues with provider_path.xml file any another way? i was thinking about generating a dynamic links that contains a meta tag of photo to be displayed rather than actual photo, is this a good idea?
share with WhatsApp works fine for me, thank you. However, with Instagram, you can't share the image passed as a parameter, it launches Instagram and asks for access to the Album.
hello @Alisofin @jordanjanaq I am still getting this issue even after deactivating devtool
@Abhishek01039 Can you check out branch v-2.0.0 I have fixed most of the issues. or just wait for 2-3 days will be releasing a new version soon.
Thanks @jigarfumakiya
Great ! @jigarfumakiya
I get same error while compiling or running.
Thanks @jordanjanaq !
@jigarfumakiya Will you be releasing the new version any time soon.
I got same error.
Getting same error
Same error here also. iOS build not compiling.
i don't want to share path as image i want to share only URL tag with image