pod lib lintで他のdependencyなライブラリのせいでnot pass validationになる時

pod lib lint hoge.podspecを実行した時に以下のようにエラーが起きてしまい、lintが通らないことがある。

 -> AXToggleTitleContainerController (0.1.0)
    - WARN  | [iOS]  UIImageEffects/UIImage+ImageEffects.m:130:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
    - WARN  | [iOS]  UIImageEffects/UIImage+ImageEffects.m:207:87: warning: implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
    - WARN  | [iOS]  UIImageEffects/UIImage+ImageEffects.m:207:95: warning: implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
    - WARN  | [iOS]  UIImageEffects/UIImage+ImageEffects.m:208:87: warning: implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
    - WARN  | [iOS]  UIImageEffects/UIImage+ImageEffects.m:208:95: warning: implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
    - WARN  | [iOS]  UIImageEffects/UIImage+ImageEffects.m:209:87: warning: implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
    - WARN  | [iOS]  UIImageEffects/UIImage+ImageEffects.m:209:95: warning: implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]

[!] AXToggleTitleContainerController did not pass validation.
You can use the `--no-clean` option to inspect any issue.

その場合は、warningの内容を確認した上で問題なければ、--allow-warningsをつけて実行すればよい

pod lib lint --allow-warnings

参照元: (http://techlife.cookpad.com/entry/2014/11/11/172156)[http://techlife.cookpad.com/entry/2014/11/11/172156]

Pocket
LINEで送る
LinkedIn にシェア