Podfile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #source 'https://github.com/CocoaPods/Specs.git'
  2. project 'TSLiveWallpaper.xcodeproj'
  3. platform :ios, '14.0'
  4. inhibit_all_warnings!
  5. target 'TSLiveWallpaper' do
  6. use_frameworks!
  7. pod 'ObjectMapper', '4.2'
  8. pod 'SnapKit'
  9. # pod 'Toast-Swift'
  10. pod 'SVProgressHUD'
  11. pod 'Kingfisher', '7.10.0'
  12. # pod 'Alamofire', '5.6.4'
  13. pod 'MJRefresh', '3.7.5'
  14. pod 'IQKeyboardManagerSwift', '6.5.12'
  15. pod 'TYCyclePagerView'
  16. pod 'BSText'
  17. end
  18. post_install do |installer|
  19. installer.pods_project.targets.each do |target|
  20. target.build_configurations.each do |config|
  21. config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
  22. # config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
  23. end
  24. end
  25. installer.aggregate_targets.each do |target|
  26. target.xcconfigs.each do |variant, xcconfig|
  27. xcconfig_path = target.client_root + target.xcconfig_relative_path(variant)
  28. IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
  29. end
  30. end
  31. installer.pods_project.targets.each do |target|
  32. target.build_configurations.each do |config|
  33. if config.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference
  34. xcconfig_path = config.base_configuration_reference.real_path
  35. IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
  36. end
  37. end
  38. end
  39. end