Podfile 1.32 KB
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
#source 'https://github.com/CocoaPods/Specs.git'
source 'https://cdn.cocoapods.org'

source 'http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git'
source 'http://bj.gitlab.cnlive.com/DSIOSTeam/DSSpecRepos.git'

target 'metaCode' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  pod 'YYCategories'

  # Pods for metaCode
  #网络请求基础库
  pod 'AFNetworking'
  #基础请求组件库
  pod 'CNLiveRequestBastKit'
  #键盘管理库
  pod 'IQKeyboardManagerSwift'
  #布局文件
  pod 'SnapKit'

  target 'metaCodeTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'metaCodeUITests' do
    # Pods for testing
  end

end

#解决第三方最低版本过低,Xcode14.3 异常了arc文件 ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
#clang: error: linker command failed with exit code 1 (use -v to see invocation)

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
    end
  end
end