
在子模块依赖第三方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')

只要在验证后面加上 --skip-import-validation
如果本地有私有库的话,需要通过 --sources= 追加spec.git 的源去验证才可以
本地校验:pod lib lint TestLib.podspec --verbose --allow-warnings --use-libraries --sources=https://github.com/CocoaPods/Specs.git

校验通过:

联网校验:pod spec lint TestLib.podspec --verbose --allow-warnings --use-libraries --sources=https://github.com/CocoaPods/Specs.git --skip-import-validation

校验通过:

上传到本地私有仓库:pod repo push TestSpec TestLib.podspec --verbose --allow-warnings --use-libraries --sources=https://github.com/CocoaPods/Specs.git --skip-import-validation

上传成功:

进入到~/.cocoapods/repos下查看是否有该版本的私有库

可以看到本地仓库里面已经有0.10.0版本的TestLib。
网友评论