美文网首页
2025-07-02pod

2025-07-02pod

作者: 丶王无情 | 来源:发表于2025-07-01 15:39 被阅读0次

    platform :ios,'12.0'
    use_frameworks!
    inhibit_all_warnings!

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

    source 'https://cdn.cocoapods.org/'

    第三方库

    def thirdPods

    下拉刷新

    pod 'MJRefresh', '3.7.2'

    YY组件

    pod 'YYKit'

    自动布局

    pod 'Masonry'

    提示框

    pod 'Toast'

    UUID

    pod 'FCUUID'

    Socket

    pod 'CocoaAsyncSocket'
    pod 'CocoaHTTPServer'
    pod 'Socket.IO-Client-Swift', '~> 15.2.0'

    图片加载

    pod 'SDWebImage', '5.19.0' #'5.13.3'
    pod 'SDWebImageWebPCoder'

    keychain

    pod 'SAMKeychain', '~> 1.5.3'

    loading

    pod 'MBProgressHUD', '~> 1.1.0'

    键盘管理

    pod 'IQKeyboardManager'

    base64

    pod 'GTMBase64'

    包解压

    pod 'SSZipArchive', '~> 1.2'

    加载json动画

    pod 'lottie-ios', '=2.5.3'#oc版本

    MD5验证

    pod 'NSData+MD5Digest'

    snap

    pod 'SnapSDK', :subspecs => ['SCSDKLoginKit']

    svga播放

    pod 'SVGAPlayer'

    播放器

    pod 'youtube-ios-player-helper', '1.0.4'

    tab动画

    pod 'TABAnimated', '2.6.1'

    数据库

    pod 'FMDB'

    tableView框架

    pod 'ZXTableView'

    svg加载

    pod 'SVGKit'

    列表圆角背景布局

    pod 'JJCollectionViewRoundFlowLayout'

    pag加载(4.4.8版本有问题,循环播放内存会一直无限增加)

    pod 'libpag', '4.4.20'

    崩溃防护

    pod 'YDPreventCrash'
    end

    运营商SDK

    def thirdSDKPods

    Crash

    pod 'Bugly'

    Facebook

    pod 'FBSDKCoreKit', '17.0.2'
    pod 'FBSDKLoginKit', '17.0.2'
    pod 'FBSDKShareKit', '17.0.2'

    谷歌的集成

    pod 'GTMSessionFetcher/Core', '~> 3.3'
    pod 'FirebaseAnalytics', '~> 10.29.0'
    pod 'FirebaseAuth', '~> 10.29.0'
    pod 'GoogleSignIn', '~> 7.1.0'
    pod 'FirebaseCore', '~> 10.29.0'
    pod 'FirebaseMessaging', '~> 10.29.0'
    pod 'FirebaseDynamicLinks', '~> 10.29.0'
    pod 'FirebaseRemoteConfig', '~> 10.29.0'

    亚马逊

    pod 'AWSAuthCore', '~> 2.6.1'
    pod 'AWSS3', '~> 2.6.1' # For file transfers
    pod 'AWSCognito', '~> 2.6.1' #For data sync

    声网

    pod 'AgoraRtcEngine_Special_iOS', '4.1.1.32.SHIBO'

    统计归因

    pod 'AppsFlyerFramework', '~> 6.14.5'
    pod 'ThinkingSDK'

    阿里云

    pod 'AliyunOSSiOS'
    end

    Debug工具

    def debugTool
    pod 'DoraemonKit/Core', '~> 3.1.3', :configurations => ['Debug']
    pod 'DoraemonKit/WithLoad', '~> 3.1.3', :configurations => ['Debug']
    pod 'DoraemonKit/WithLogger', '~> 3.1.3', :configurations => ['Debug']
    pod 'DoraemonKit/WithMLeaksFinder', '~> 3.1.3', :configurations => ['Debug']
    end

    target 'Weeka' do

    thirdPods

    thirdSDKPods

    debugTool

    end

    post_install do |installer|
    #----------解决M1芯片电脑不能模拟机运行 xcode16打包提审要加这个去掉bitcode 不然会报错
    bitcode_strip_path = xcrun --find bitcode_strip.chop!
    def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
    framework_path = File.join(Dir.pwd, framework_relative_path)
    command = "#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}"
    puts "Stripping bitcode: #{command}"
    system(command)
    end
    framework_paths = [
    "/Pods/AgoraRtcEngine_Special_iOS/AgoraDav1d.xcframework/ios-arm64_armv7/AgoraDav1d.framework/AgoraDav1d",
    ]
    framework_paths.each do |framework_relative_path|
    strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
    end
    #------------------
    installer.pods_project.build_configurations.each do |config|
    config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end

    Fix for XCode 12.5

    find_and_replace("Pods/FBRetainCycleDetector/FBRetainCycleDetector/Layout/Classes/FBClassStrongLayout.mm",
    "layoutCache[currentClass] = ivars;", "layoutCache[(id<NSCopying>)currentClass] = ivars;")
    end

    def find_and_replace(dir, findstr, replacestr)
    Dir[dir].each do |name|
    FileUtils.chmod("+w", name) #add
    text = File.read(name)
    replace = text.gsub(findstr,replacestr)
    if text != replace
    puts "Fix: " + name
    File.open(name, "w") { |file| file.puts replace }
    STDOUT.flush
    end
    end
    Dir[dir + '*/'].each(&method(:find_and_replace))
    end

    相关文章

      网友评论

          本文标题:2025-07-02pod

          本文链接:https://www.haomeiwen.com/subject/ipfwgjtx.html