Podfile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Uncomment the next line to define a global platform for your project
  2. platform :ios, '12.0'
  3. use_modular_headers!
  4. inhibit_all_warnings!
  5. pre_install do |installer|
  6. remove_swiftui()
  7. end
  8. def remove_swiftui
  9. # 解决 xcode13 Release模式下SwiftUI报错问题
  10. system("rm -rf ./Pods/Kingfisher/Sources/SwiftUI")
  11. code_file = "./Pods/Kingfisher/Sources/General/KFOptionsSetter.swift"
  12. code_text = File.read(code_file)
  13. code_text.gsub!(/#if canImport\(SwiftUI\) \&\& canImport\(Combine\)(.|\n)+#endif/,'')
  14. system("rm -rf " + code_file)
  15. aFile = File.new(code_file, 'w+')
  16. aFile.syswrite(code_text)
  17. aFile.close()
  18. end
  19. use_frameworks!
  20. source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
  21. target 'CampusAssistant' do
  22. # Comment the next line if you don't want to use dynamic frameworks
  23. use_frameworks!
  24. # Pods for CampusAssistant
  25. pod 'TUICallKit'
  26. pod 'TXAppBasic', :path => "./TXAppBasic/"
  27. pod 'Toast-Swift'
  28. pod 'Alamofire'
  29. pod 'Kingfisher', '~> 6.3.1'
  30. pod 'SnapKit'
  31. pod 'MMKV'
  32. pod 'SwiftEntryKit', '2.0.0'
  33. pod 'NotificationBannerSwift', '~> 3.0.0'
  34. pod 'CheckVersion_Swift'
  35. pod 'swiftScan', :git => 'https://github.com/MxABC/swiftScan.git'
  36. pod 'SwiftGifOrigin', '~> 1.7.0'
  37. pod 'APNGKit', '~> 2.0'
  38. pod 'JFPopup', '1.4.0'
  39. pod 'YJTaskMark','2.0.7'
  40. end
  41. post_install do |installer|
  42. installer.pods_project.targets.each do |target|
  43. target.build_configurations.each do |config|
  44. config.build_settings['ENABLE_BITCODE'] = 'NO'
  45. end
  46. end
  47. end