美文网首页cocoaPods
cocoapods私有库:pod subspec 子模块后续

cocoapods私有库:pod subspec 子模块后续

作者: pigLily | 来源:发表于2021-05-06 16:13 被阅读0次
image.png

在子模块依赖第三方framework或者静态库时报错:
[iOS] xcodebuild: Returned an unsuccessful exit code
NOTE | xcodebuild: note: Using new build system
NOTE | xcodebuild: note: Building targets in parallel
NOTE | xcodebuild: note: Using codesigning identity override: -
NOTE | [iOS] xcodebuild: note: Planning build
NOTE | [iOS] xcodebuild: note: Constructing build description
NOTE | [iOS] xcodebuild: warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')

image.png
只要在验证后面加上 --skip-import-validation
如果本地有私有库的话,需要通过 --sources= 追加spec.git 的源去验证才可以
本地校验:pod lib lint TestLib.podspec --verbose --allow-warnings --use-libraries --sources=https://github.com/CocoaPods/Specs.git
image.png
校验通过:
image.png
联网校验:pod spec lint TestLib.podspec --verbose --allow-warnings --use-libraries --sources=https://github.com/CocoaPods/Specs.git --skip-import-validation
image.png
校验通过:
image.png
上传到本地私有仓库:pod repo push TestSpec TestLib.podspec --verbose --allow-warnings --use-libraries --sources=https://github.com/CocoaPods/Specs.git --skip-import-validation
image.png
上传成功: image.png
进入到~/.cocoapods/repos下查看是否有该版本的私有库
image.png
可以看到本地仓库里面已经有0.10.0版本的TestLib。

相关文章

网友评论

    本文标题:cocoapods私有库:pod subspec 子模块后续

    本文链接:https://www.haomeiwen.com/subject/rksddltx.html