| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- # Uncomment the next line to define a global platform for your project
- platform :ios, '12.0'
- use_modular_headers!
- inhibit_all_warnings!
- pre_install do |installer|
- remove_swiftui()
- end
- def remove_swiftui
- # 解决 xcode13 Release模式下SwiftUI报错问题
- system("rm -rf ./Pods/Kingfisher/Sources/SwiftUI")
- code_file = "./Pods/Kingfisher/Sources/General/KFOptionsSetter.swift"
- code_text = File.read(code_file)
- code_text.gsub!(/#if canImport\(SwiftUI\) \&\& canImport\(Combine\)(.|\n)+#endif/,'')
- system("rm -rf " + code_file)
- aFile = File.new(code_file, 'w+')
- aFile.syswrite(code_text)
- aFile.close()
- end
- use_frameworks!
- source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
- target 'CampusAssistant' do
- # Comment the next line if you don't want to use dynamic frameworks
- use_frameworks!
- # Pods for CampusAssistant
- pod 'TUICallKit'
- pod 'TXAppBasic', :path => "./TXAppBasic/"
- pod 'Toast-Swift'
- pod 'Alamofire'
- pod 'Kingfisher', '~> 6.3.1'
- pod 'SnapKit'
- pod 'MMKV'
- pod 'SwiftEntryKit', '2.0.0'
- pod 'NotificationBannerSwift', '~> 3.0.0'
- pod 'CheckVersion_Swift'
- pod 'swiftScan', :git => 'https://github.com/MxABC/swiftScan.git'
- pod 'SwiftGifOrigin', '~> 1.7.0'
- pod 'APNGKit', '~> 2.0'
- pod 'JFPopup', '1.4.0'
- pod 'YJTaskMark','2.0.7'
- end
- post_install do |installer|
- installer.pods_project.targets.each do |target|
- target.build_configurations.each do |config|
- config.build_settings['ENABLE_BITCODE'] = 'NO'
- end
- end
- end
|