关于ios:将AFNetworking推送到私有cocoapods podspec时验证失败

validate fail when pushing AFNetworking to private cocoapods podspec

我正尝试通过以下步骤将AFNetworking添加到私有cocoapods规范中。

  • 从github克隆AFNetworking并推送到私有gitlab
  • 修改AFNetworking.podspec文件并将s.source属性更改为私有URL
  • 运行pod spec lint --verbose,失败
  • ** BUILD SUCCEEDED **

    Testing with xcodebuild. -> AFNetworking (3.2.1)

    • NOTE | [AFNetworking/Serialization, AFNetworking/Security, AFNetworking/Reachability, and more...] xcodebuild: note: Using new
      build system
    • NOTE | [AFNetworking/Serialization, AFNetworking/Security, AFNetworking/Reachability, and more...] xcodebuild: note: Planning
      build
    • NOTE | [AFNetworking/Serialization, AFNetworking/Security, AFNetworking/Reachability, and more...] xcodebuild: note:
      Constructing build description
    • NOTE | [AFNetworking/Serialization, AFNetworking/Security, AFNetworking/Reachability, and more...] xcodebuild: warning: Skipping
      code signing because the target does not have an Info.plist file. (in
      target 'App')
    • ERROR | [AFNetworking/Serialization, AFNetworking/Security, AFNetworking/Reachability, and more...] xcodebuild: Returned an
      unsuccessful exit code.

    Analyzed 1 podspec.

    [!] The spec did not pass validation, due to 1 error.

    有谁知道如何解决这个问题?


    通过运行以下命令解决了我的问题:

    1
    pod repo push MySpec AFNetworking.podspec --sources=MySpec,master --allow-warnings

    在依存关系部分的podspec文件中添加AFNetworking窗格名称。

    s.dependency ='AFNetworking,:path =>''