SCTTSVoiceLib.podspec 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #
  2. # Be sure to run `pod lib lint SCTTSVoiceLib.podspec' to ensure this is a
  3. # valid spec before submitting.
  4. #
  5. # Any lines starting with a # are optional, but their use is encouraged
  6. # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
  7. #
  8. Pod::Spec.new do |s|
  9. s.name = 'SCTTSVoiceLib'
  10. s.version = '0.1.0'
  11. s.summary = 'A short description of SCTTSVoiceLib.'
  12. # This description is used to generate tags and improve search results.
  13. # * Think: What does it do? Why did you write it? What is the focus?
  14. # * Try to keep it short, snappy and to the point.
  15. # * Write the description between the DESC delimiters below.
  16. # * Finally, don't worry about the indent, CocoaPods strips it!
  17. s.description = <<-DESC
  18. TODO: Add long description of the pod here.
  19. DESC
  20. s.homepage = 'https://github.com/chaosheng/SCTTSVoiceLib'
  21. # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  22. s.license = { :type => 'MIT', :file => 'LICENSE' }
  23. s.author = { 'chaosheng' => '794292206@qq.com' }
  24. s.source = { :git => 'https://github.com/chaosheng/SCTTSVoiceLib.git', :tag => s.version.to_s }
  25. # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  26. s.ios.deployment_target = '11.0'
  27. # 依赖的第三方本地框架
  28. s.vendored_frameworks = 'SCTTSVoiceLib/Classes/tts/nuisdk.framework'
  29. # 关键配置:添加链接器参数
  30. s.xcconfig = {
  31. 'OTHER_LDFLAGS' => '-framework "nuisdk"',
  32. }
  33. #s.resource_bundles = {
  34. # 'SCTTSVoiceLib' => ['SCTTSVoiceLib/Assets/*.png']
  35. #}
  36. s.resources = 'SCTTSVoiceLib/Assets/SCTTSVoiceLib.bundle'
  37. s.public_header_files = 'Pod/Classes/*.h'
  38. # s.frameworks = 'UIKit', 'MapKit'
  39. # s.dependency 'AFNetworking', '~> 2.3'
  40. s.dependency 'KZBasalLib'
  41. s.dependency 'Masonry', '1.1.0'
  42. s.dependency 'SDWebImage', '5.5.2'
  43. s.dependency 'onnxruntime-objc','1.15.1'
  44. s.static_framework = true # 确保你的库作为静态框架构建
  45. s.dependency 'SocketRocket' #'0.7.1'
  46. s.subspec 'audio' do |var|
  47. var.source_files = 'SCTTSVoiceLib/Classes/audio/*'
  48. end
  49. s.subspec 'tts' do |var|
  50. var.source_files = 'SCTTSVoiceLib/Classes/tts/*'
  51. end
  52. s.subspec 'weakup' do |var|
  53. var.source_files = 'SCTTSVoiceLib/Classes/wakeup/*'
  54. end
  55. s.subspec 'apng' do |var|
  56. var.source_files = 'SCTTSVoiceLib/Classes/apng/*'
  57. end
  58. s.subspec 'chatting' do |var|
  59. var.source_files = 'SCTTSVoiceLib/Classes/chatting/*'
  60. end
  61. end