flutter_share_me icon indicating copy to clipboard operation
flutter_share_me copied to clipboard

Error when building With Flutter 3 and compiling

Open armandojimenez opened this issue 2 years ago • 4 comments

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.

armandojimenez avatar May 19 '22 02:05 armandojimenez

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.

jodymac avatar May 21 '22 20:05 jodymac

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 avatar Jun 24 '22 04:06 wl1395182472

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

wl1395182472 avatar Jun 24 '22 04:06 wl1395182472

same

nimi0112 avatar Dec 06 '22 14:12 nimi0112