source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '12.0'
use_frameworks!

def import_nav_local
  pod 'TencentNavKitPrivate', :path => "LocalPods/TencentNavKit/"#, :subspecs => ['TencentNavKit']
  pod 'libwebp', '1.2.4'
end


def import_nav
  pod 'TencentNavKit', '6.10.1'
  pod 'libwebp', '1.2.4'
end



target 'TencentNavSDKDemo' do
  import_nav
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    
    target.build_configurations.each do |config|
      # 兼容M1
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
      #导航 resource bundles 签名问题
      config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
    end

  end
end
