Podfile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. source 'https://github.com/CocoaPods/Specs.git'
  2. platform :ios, '11.0'
  3. target 'AICity' do
  4. # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  5. # use_frameworks!
  6. pod 'Masonry'
  7. pod 'MJRefresh','3.7.5'
  8. pod 'SDWebImage','5.12.1'
  9. pod 'AFNetworking'
  10. pod 'ZFPlayer', '4.1.4'
  11. pod 'ZFPlayer/ControlView', '4.1.4'
  12. pod 'ZFPlayer/AVPlayer', '4.1.4'
  13. pod 'ZFPlayer/ijkplayer', '4.1.4'
  14. pod 'FDFullscreenPopGesture'
  15. pod 'MBProgressHUD'
  16. pod 'MJExtension'
  17. # pod 'WechatOpenSDK' # 暂时注释,模拟器不支持
  18. # pod 'AlipaySDK-iOS', '15.8.17' # 暂时注释,版本不兼容
  19. # 腾讯云播放器SDK - 短剧秒切功能需要
  20. # 参考: specs/004-/quickstart.md
  21. pod 'TXLiteAVSDK_Player', '~> 11.8'
  22. end
  23. # Post-install hook: 修复 CocoaPods 脚本的沙箱问题
  24. post_install do |installer|
  25. resources_script = 'Pods/Target Support Files/Pods-AICity/Pods-AICity-resources.sh'
  26. if File.exist?(resources_script)
  27. text = File.read(resources_script)
  28. # 修复 realpath -mq 问题
  29. text = text.gsub(/realpath -mq/, '')
  30. # 修复沙箱写入问题
  31. text = text.gsub(/RESOURCES_TO_COPY=\$\{PODS_ROOT\}/, 'RESOURCES_TO_COPY="${TEMP_DIR}"')
  32. File.write(resources_script, text)
  33. puts "✓ Fixed Pods-AICity-resources.sh sandbox issues"
  34. end
  35. frameworks_script = 'Pods/Target Support Files/Pods-AICity/Pods-AICity-frameworks.sh'
  36. if File.exist?(frameworks_script)
  37. text = File.read(frameworks_script)
  38. # 修复 ARCHS[@] 问题
  39. text = text.gsub('${ARCHS[@]}', '${ARCHS}')
  40. File.write(frameworks_script, text)
  41. puts "✓ Fixed Pods-AICity-frameworks.sh ARCHS issues"
  42. end
  43. end