Skip to content
DemoFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub
Flutter Guides Troubleshooting

Troubleshooting ​

iOS Dependency Download Failures ​

You can first refresh the CocoaPods cache and retry in the example/ios directory:

bash
pod repo update
pod cache clean --all
rm -rf Pods Podfile.lock
pod install --repo-update

If installing native dependencies fails when downloading ComPDF SDK from the default source, use Git sources in your Flutter project's ios/Podfile. Retain the existing Flutter initialization, build configuration, and post-install processing. Configure the dependencies inside the Runner target:

ruby
target 'Runner' do
  use_frameworks!
  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))

  pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '3.2.1'
  pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '3.2.1'
end

Keep only one source configuration for each native library, then reinstall dependencies from the ios directory. See Creating a New Project for the full integration configuration.