Skip to content
Snippets Groups Projects
Podfile 3.22 KiB
Newer Older
install! 'cocoapods', :deterministic_uuids => false
Tobias's avatar
Tobias committed
inhibit_all_warnings!

  use_modular_headers!
  pod 'AFNetworking', :git => 'https://code.videolan.org/fkuehne/AFNetworking.git', :commit => 'ee51009a' # add visionOS support
  pod 'VLCKit', '4.0.0a11'
target 'VLC-iOS' do
  shared_pods
  pod 'InAppSettingsKit', :git => 'https://github.com/Mikanbu/InAppSettingsKit.git', :commit => 'a429840' #tvOS fix
  pod 'box-ios-sdk-v2', :git => 'https://github.com/fkuehne/box-ios-sdk-v2.git', :commit => '08161e74' #has a our fixes
  # debug
  pod 'SwiftLint', '~> 0.50.3', :configurations => ['Debug']

      inherit! :search_paths
  end

  use_modular_headers!
target 'VLC-iOS-Screenshots' do
target 'VLC-tvOS' do

  # debug
  pod 'SwiftLint', '~> 0.50.3', :configurations => ['Debug']
Felix Paul Kühne's avatar
Felix Paul Kühne committed
end
target 'VLC-visionOS' do
  shared_pods

  use_modular_headers!
end

post_install do |installer_representation|
  installer_representation.pods_project.targets.each do |target|
     installer_representation.pods_project.build_configurations.each do |config|
       config.build_settings['SKIP_INSTALL'] = 'YES'
       config.build_settings['ARCHS'] = 'arm64 x86_64'
       config.build_settings['CLANG_CXX_LIBRARY'] = 'libc++'
       config.build_settings['SUPPORTED_PLATFORMS'] = 'iphoneos iphonesimulator appletvos appletvsimulator xros xrsimulator'
       config.build_settings['TARGETED_DEVICE_FAMILY'] = '1,2,3,7'
    target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
        config.build_settings['TVOS_DEPLOYMENT_TARGET'] = '12.0'
        xcconfig_path = config.base_configuration_reference.real_path
        xcconfig = File.read(xcconfig_path)
        new_xcconfig = xcconfig.sub('-l"sqlite3"', '')
        File.open(xcconfig_path, "w") { |file| file << new_xcconfig }
    end