Flutter プラグインを作成しています。しかし、プラグインの iOS 部分に依存関係を追加しようとすると、適切なガイドラインが見つかりません。podspec
プラグインのファイルで依存関係を宣言しました。しかし、依存関係はスルー Pod でのみ利用できますが、プラグインexample/ios
のフォルダーでその依存関係にアクセスしたいです。ios
これは私のpodspec
です:
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'comet_chat'
s.version = '0.0.1'
s.summary = 'A new Flutter plugin.'
s.description = <<-DESC
A new Flutter plugin.
DESC
s.homepage = 'http://example.com'
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => 'email@example.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'CometChatPro', '1.4.0'
s.ios.deployment_target = '10.0'
s.preserve_paths = 'CometChatPro.framework'
s.xcconfig = { 'OTHER_LDFLAGS' => '-framework CometChatPro' }
s.vendored_frameworks = 'CometChatPro.framework'
end
この問題をフォローしましたが、役に立ちませんでした。この問題を解決するには?プラグインのみの依存関係を取得するにはどうすればよいですか?