Please check this image when I add whatsapp_share2: ^2.0.2 this plugin I can't install pod and they give me "No podspec found for whatsapp_share2 in .symlinks/plugins/whatsapp_share2/ios" and also I use this library for share image in direcly Whatsapp so please help me to find a solution
check this image
I found the solution by doing this:
ios/.symlinks/plugins/whatsapp_share2/ios/flutter_share.podspec
to :
ios/.symlinks/plugins/whatsapp_share2/ios/whatsapp_share2.podspec
· Edit the line no. 5 s.name to :
s.name = 'whatsapp_share2'
☞ ios/.symlinks/plugins/whatsapp_share2/ios/Classes/FlutterSharePlugin.m changing the lines:
#import "WhatsappShare.h"
#import <whatsapp_share/whatsapp_share-Swift.h>
to:
#import "FlutterSharePlugin.h"
#import <whatsapp_share2/whatsapp_share2-Swift.h>
Go to:
iOS > .symlinks/plugins/whatsapp_share2/iOS/
There is a file named flutter_share.podspec
Rename this file to whatsapp_share2.posdpec and paste the following content:
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'whatsapp_share2'
s.version = '0.0.1'
s.swift_version = '4.1'
s.summary = 'Simple way to share a message, link or files from your flutter app'
s.description = <<-DESC
Simple way to share a message, link or files from your flutter app
DESC
s.homepage = 'http://example.com'
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => '[email protected]' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.ios.deployment_target = '8.0'
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With