ShoutSocial / share_handler

A plugin to facilitate receiving and handling share intents
41 stars 39 forks source link

Swift Compiler Error (Xcode): 'INOutgoingMessageType' is only available in iOS 14.0 or newer #78

Open ujwalbasnet1 opened 9 months ago

ujwalbasnet1 commented 9 months ago
Could not build the precompiled application for the device.
Swift Compiler Error (Xcode): 'init(recipients:outgoingMessageType:content:speakableGroupName:conversationIdentifier:serviceName:sender:attachments:)' is only available in iOS 14.0 or newer
/Users/ujwalbasnet1/.pub-cache/hosted/pub.dev/share_handler_ios-0.0.13/ios/Classes/SwiftShareHandlerIosPlatform.swift:240:40

Swift Compiler Error (Xcode): 'INOutgoingMessageType' is only available in iOS 14.0 or newer
/Users/ujwalbasnet1/.pub-cache/hosted/pub.dev/share_handler_ios-0.0.13/ios/Classes/SwiftShareHandlerIosPlatform.swift:240:98

when tried running with

share_handler: ^0.0.20

sunjiaming commented 8 months ago

I had the same problem,Did you solve it

gustavomaedo commented 8 months ago

For me it works this way:

dependencies:
  ...
  share_handler: 0.0.19

dependency_overrides:
  share_handler_ios: 0.0.12
matteodg commented 8 months ago

I changed the platform in the ios/Podfile to be 14.0:

platform :ios, '14.0'
Mounix99 commented 8 months ago

I changed the platform in the ios/Podfile to be 14.0:

platform :ios, '14.0'

Works for me also, missed that place for target version

MagTuxGit commented 5 months ago

This one may be closed. My fix was merged.