Skip to content

[!] Unable to install vendored xcframework Diffusion for Pod diffusion_flutter, because it contains both static and dynamic frameworks. #1

@emreakcan

Description

@emreakcan

We are having a linking problem while using the xcframework in our package.
Any idea why xcframework including both static and dynamic libraries?
Is it possible to have just static libraries in the build?

[!] Unable to install vendored xcframework Diffusionfor Poddiffusion_flutter, because it contains both static and dynamic frameworks.

#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint diffusion_flutter.podspec` to validate before publishing.
#
Pod::Spec.new do |s|
  s.name             = 'diffusion_flutter'
  s.version          = '0.0.1'
  s.summary          = 'Flutter plugin for Diffusion SDK'
  s.description      = 'A Flutter plugin that provides integration with the Diffusion SDK for iOS and Android platforms.'
  s.homepage         = 'http://example.com'
  s.license          = { :type => 'MIT', :file => '../LICENSE' }
  s.author           = { 'Your Company' => 'email@example.com' }
  s.source           = { :git => "https://github.com/yourusername/diffusion_flutter.git", :tag => s.version.to_s }
  s.source_files = 'Classes/**/*'
  s.dependency 'Flutter'
  s.platform = :ios, '12.0'

    s.vendored_frameworks = 'Diffusion.xcframework'
    s.preserve_paths = 'Diffusion.xcframework'
    s.pod_target_xcconfig = {
      'DEFINES_MODULE' => 'YES',
      'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386 arm64',
      'EXCLUDED_ARCHS[sdk=iphoneos*]' => 'i386 x86_64 arm64',
      'OTHER_LDFLAGS' => '-framework Diffusion'
    }

  s.swift_version = '5.0'
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions