开发者社区 问答 正文

在AUI我们要把你们sdk推到cocoapods,请问这个podspec应该怎么配置呀?

在AUI我们要把你们sdk推到cocoapods,请问这个podspec应该怎么配置呀?67d2ceb9693f62b23f6e114bda0983b5.png

展开
收起
三分钟热度的鱼 2023-08-22 16:38:21 68 分享 版权
来自: 阿里云CDN
1 条回答
写回答
取消 提交回答
  • 北京阿里云ACE会长

    如何正确的提问,得到有效帮助


    我已经认真阅读了 你的问题:

    【 在AUI我们要把你们sdk推到cocoapods,请问这个podspec应该怎么配置呀?

    并思考了

    建议如下:


    在 AUI 中,将 SDK 推到 CocoaPods 需要创建一个名为 AUI-SDK.podspec 的文件,然后在其中配置相关的信息。以下是一个基本的配置示例:

    Pod::Spec.new do |s|
    s.name = 'AUI-SDK'
    s.version = '0.1.0'
    s.summary = 'AUI SDK for iOS'
    s.description = <<-DESC
    This is the AUI SDK for iOS.
    DESC
    s.homepage = 'https://github.com/yourusername/AUI-SDK'
    s.license = { :type => 'MIT', :file => 'LICENSE' }
    s.author = { 'Your Name' => 'you@example.com' }
    s.source = { :git => 'https://github.com/yourusername/AUI-SDK.git', :tag => s.version.to_s }

    s.ios.deployment_target = '10.0'
    s.osx.deployment_target = '10.12'
    s.requires_arc = true
    s.source_files = 'AUI-SDK/Classes/*/.{h,

    2023-08-26 15:20:29
    赞同 展开评论