将 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.
有大佬知道怎么解决这个问题吗?
在依赖部分的 podspec 文件中添加 AFNetworking pod 名称。
s.dependency = 'AFNetworking, :path => ''
运行解决了我的问题:
pod repo push MySpec AFNetworking.podspec --sources=MySpec,master --allow-warnings
我正尝试通过以下步骤将 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.
有大佬知道怎么解决这个问题吗?
在依赖部分的 podspec 文件中添加 AFNetworking pod 名称。
s.dependency = 'AFNetworking, :path => ''
运行解决了我的问题:
pod repo push MySpec AFNetworking.podspec --sources=MySpec,master --allow-warnings