pod lib lint xxx.podspec --verbose --use-libraries --allow-warnings
備注:--verbose:拋出錯誤信息
--use-libraries: 使用私有.a 或者framework
--allow-warnings: 忽略警告
本地驗證通過之后侨颈,再把代碼恭应,文件提交到服務器
$ pod spec lint
或者(--verbose 可以顯示詳細錯誤信息)(--use-libraries 有引入私有.a / framework 包)
$ pod spec lint --use-libraries --verbose
或者 (--allow-warnings 忽略警告信息繼續(xù)操作)
$ pod spec lint --allow-warnings
$ pod trunk push XXX.podspec
或者(--allow-warnings 忽略警告提交)
$ pod trunk push xxx.podspec --allow-warnings
上傳驗證時如果遇到以下錯誤
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- 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