KasemJaffer / receive_sharing_intent

A Flutter plugin that enables flutter apps to receive sharing photos, text and url from other apps.
Apache License 2.0
325 stars 372 forks source link

Example App throwing erros on iOS #214

Open DieGlueckswurst opened 2 years ago

DieGlueckswurst commented 2 years ago

I wanted to test the given example. I simply downloaded it and ran the example. However XCode just throws erros in my face:

Swift Compiler Error (Xcode): Value of type 'Any' has no member 'hasItemConformingToTypeIdentifier' [/Users/chris/Programmieren/App-Development/receive_sharing_intent-master/example/ios/Sharing]()%20Extension[/ShareViewController.swift:58:34]()

Swift Compiler Error (Xcode): Cannot convert value of type 'Any' to expected argument type 'NSItemProvider' [/Users/chris/Programmieren/App-Development/receive_sharing_intent-master/example/ios/Sharing]()%20Extension[/ShareViewController.swift:59:67]()

Swift Compiler Error (Xcode): Value of type 'Any' has no member 'hasItemConformingToTypeIdentifier' [/Users/chris/Programmieren/App-Development/receive_sharing_intent-master/example/ios/Sharing]()%20Extension[/ShareViewController.swift:60:41]()

Swift Compiler Error (Xcode): Cannot convert value of type 'Any' to expected argument type 'NSItemProvider' [/Users/chris/Programmieren/App-Development/receive_sharing_intent-master/example/ios/Sharing]()%20Extension[/ShareViewController.swift:61:65]()

Swift Compiler Error (Xcode): Value of type 'Any' has no member 'hasItemConformingToTypeIdentifier' [/Users/chris/Programmieren/App-Development/receive_sharing_intent-master/example/ios/Sharing]()%20Extension[/ShareViewController.swift:62:41]()

Swift Compiler Error (Xcode): Cannot convert value of type 'Any' to expected argument type 'NSItemProvider' [/Users/chris/Programmieren/App-Development/receive_sharing_intent-master/example/ios/Sharing]()%20Extension[/ShareViewController.swift:63:66]()

Swift Compiler Error (Xcode): Value of type 'Any' has no member 'hasItemConformingToTypeIdentifier' [/Users/chris/Programmieren/App-Development/receive_sharing_intent-master/example/ios/Sharing]()%20Extension[/ShareViewController.swift:64:41]()

Swift Compiler Error (Xcode): Cannot convert value of type 'Any' to expected argument type 'NSItemProvider' [/Users/chris/Programmieren/App-Development/receive_sharing_intent-master/example/ios/Sharing]()%20Extension[/ShareViewController.swift:65:64]()

Swift Compiler Error (Xcode): Value of type 'Any' has no member 'hasItemConformingToTypeIdentifier' [/Users/chris/Programmieren/App-Development/receive_sharing_intent-master/example/ios/Sharing]()%20Extension[/ShareViewController.swift:66:41]()

Swift Compiler Error (Xcode): Cannot convert value of type 'Any' to expected argument type 'NSItemProvider' [/Users/chris/Programmieren/App-Development/receive_sharing_intent-master/example/ios/Sharing]()%20Extension[/ShareViewController.swift:67:67]()

Swift Compiler Error (Xcode): Extraneous argument label 'preferredTimescale:' in call [/Users/chris/Programmieren/App-Development/receive_sharing_intent-master/example/ios/Sharing]()%20Extension[/ShareViewController.swift:307:80]()

Could not build the application for the simulator. Error launching application on iPhone SE (2nd generation).

What am I missing here? Do I have to configure something else? I couldn't find anything in the readme on this.

Letalus commented 2 years ago

lets be honest. The package is not maintained anymore and we are all hoping for a messia which will create a new package for this. After I have completed my latest 2 projects, I'll try to be the messia and implement a package which will actually work.

JoshJuncker commented 2 years ago

lets be honest. The package is not maintained anymore and we are all hoping for a messia which will create a new package for this. After I have completed my latest 2 projects, I'll try to be the messia and implement a package which will actually work.

I decided to take on the task as this wasn't maintained (last published 14 months ago...) and I wanted to provide share to suggestions for deep linking the share into a specific conversation. Hence my open source project Share Handler, https://pub.dev/packages/share_handler. Give it a look. I'll do my best to be active on it.

Juniorlpes commented 5 months ago

update swift to version 5