OpenFlutter / flutter_share_me

Flutter Plugin for sharing contents to social media. You can use it share to Facebook , WhatsApp , Twitter And System Share UI. Support Url and Text.
https://github.com/lizhuoyuan
Apache License 2.0
150 stars 145 forks source link

Error when building With Flutter 3 and compiling #92

Open armandojimenez opened 2 years ago

armandojimenez commented 2 years ago

Getting this error with Flutter 3, and xCode 13.4 when generating a .IPA

Uncategorized (Xcode): Command CompileSwiftSources failed with a nonzero exit code

Swift Compiler Error (Xcode): 'Sharing' is unavailable: cannot find Swift declaration for this protocol
/Users/armandojimenez/development/flutter/SDK/flutter/.pub-cache/git/flutter_share_me-35368f25fd5ff913ca3c5ad32210b1b1335672d4/ios/Classes/SwiftFlutterShare
MePlugin.swift:320:33

Swift Compiler Error (Xcode): 'Sharing' is unavailable: cannot find Swift declaration for this protocol
/Users/armandojimenez/development/flutter/SDK/flutter/.pub-cache/git/flutter_share_me-35368f25fd5ff913ca3c5ad32210b1b1335672d4/ios/Classes/SwiftFlutterShare
MePlugin.swift:325:33

Swift Compiler Error (Xcode): 'Sharing' is unavailable: cannot find Swift declaration for this protocol
/Users/armandojimenez/development/flutter/SDK/flutter/.pub-cache/git/flutter_share_me-35368f25fd5ff913ca3c5ad32210b1b1335672d4/ios/Classes/SwiftFlutterShare
MePlugin.swift:330:42

Swift Compiler Error (Xcode): 'SharingDelegate' is unavailable: cannot find Swift declaration for this protocol
/Users/armandojimenez/development/flutter/SDK/flutter/.pub-cache/git/flutter_share_me-35368f25fd5ff913ca3c5ad32210b1b1335672d4/ios/Classes/SwiftFlutterShare
MePlugin.swift:4:65

Swift Compiler Error (Xcode): 'ShareLinkContent' is unavailable: cannot find Swift declaration for this class
/Users/armandojimenez/development/flutter/SDK/flutter/.pub-cache/git/flutter_share_me-35368f25fd5ff913ca3c5ad32210b1b1335672d4/ios/Classes/SwiftFlutterShare
MePlugin.swift:190:27

Swift Compiler Error (Xcode): Value of type 'ShareLinkContent' has no member 'contentURL'
/Users/armandojimenez/development/flutter/SDK/flutter/.pub-cache/git/flutter_share_me-35368f25fd5ff913ca3c5ad32210b1b1335672d4/ios/Classes/SwiftFlutterShare
MePlugin.swift:191:21

Swift Compiler Error (Xcode): Value of type 'ShareLinkContent' has no member 'quote'
/Users/armandojimenez/development/flutter/SDK/flutter/.pub-cache/git/flutter_share_me-35368f25fd5ff913ca3c5ad32210b1b1335672d4/ios/Classes/SwiftFlutterShare
MePlugin.swift:192:21

Swift Compiler Error (Xcode): Argument passed to call that takes no arguments
/Users/armandojimenez/development/flutter/SDK/flutter/.pub-cache/git/flutter_share_me-35368f25fd5ff913ca3c5ad32210b1b1335672d4/ios/Classes/SwiftFlutterShare
MePlugin.swift:194:37

Swift Compiler Error (Xcode): Cannot infer contextual base in reference to member 'automatic'
/Users/armandojimenez/development/flutter/SDK/flutter/.pub-cache/git/flutter_share_me-35368f25fd5ff913ca3c5ad32210b1b1335672d4/ios/Classes/SwiftFlutterShare
MePlugin.swift:195:28

Encountered error while archiving for device.
jodymac commented 2 years ago

I'm getting these same errors and can no longer build my project.

I downgraded to flutter 2.10.5

Then, I also had to change my pubspec.yaml from.. flutter_share_me: git: url: https://github.com/jordanjanaq/flutter_share_me

To... flutter_share_me: ^0.11.0

I can build again now.

wl1395182472 commented 2 years ago

flutter-sdk:3.0.1

flutter_share_me: git: url: https://github.com/jordanjanaq/flutter_share_me

flutter_facebook_auth: ^4.1.1

image image

wl1395182472 commented 2 years ago

flutter-sdk:3.0.1

flutter_share_me: git: url: https://github.com/jordanjanaq/flutter_share_me

flutter_facebook_auth: ^4.1.1

image image

or flutter_facebook_auth: ^4.2.0

nimi0112 commented 1 year ago

same