验证podspec时报错解决

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 忽略警告信息继续操作)
 $ 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

你可能感兴趣的:(验证podspec时报错解决)