validate fail when pushing AFNetworking to private cocoapods podspec
我正尝试通过以下步骤将
** 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 =>''