可可足'did not pass validation'错误

cocoapod 'did not pass validation' error

我已经修复了一堆 podspec 创建错误。这是 pod lib lint 的输出:

-> KTPhotosViewController (1.0.0)
    - WARN  | [iOS]  pop/pop/POPDecayAnimationInternal.h:61:11: warning: absolute value function 'fabsf' given an argument of type 'const CGFloat' (aka 'const double') but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
    - NOTE  | [iOS]  pop/pop/POPDecayAnimationInternal.h:61:11: note: use function 'std::abs' instead
    - NOTE  | [iOS]  pop/pop/POPDecayAnimationInternal.h:61:11: note: include the header <cmath> or explicitly provide a declaration for 'std::abs'
    - WARN  | [iOS]  pop/pop/POPSpringAnimationInternal.h:49:14: warning: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
    - NOTE  | [iOS]  pop/pop/POPSpringAnimationInternal.h:49:14: note: use function 'std::abs' instead
    - NOTE  | [iOS]  pop/pop/POPSpringAnimationInternal.h:49:14: note: include the header <cmath> or explicitly provide a declaration for 'std::abs'
    - WARN  | [iOS]  pop/pop/POPSpringAnimationInternal.h:49:67: warning: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
    - NOTE  | [iOS]  pop/pop/POPSpringAnimationInternal.h:49:67: note: use function 'std::abs' instead
    - NOTE  | [iOS]  pop/pop/POPSpringAnimationInternal.h:49:67: note: include the header <cmath> or explicitly provide a declaration for 'std::abs'
    - WARN  |  IDMPhotoBrowser/Classes/IDMPhotoBrowser.m:298:26: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]
    - NOTE  |  IDMPhotoBrowser/Classes/IDMPhotoBrowser.m:298:26: note: use function 'fabsf' instead
    - WARN  |  IDMPhotoBrowser/Classes/IDMPhotoBrowser.m:431:27: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]
    - NOTE  | [iOS]  IDMPhotoBrowser/Classes/IDMPhotoBrowser.m:431:27: note: use function 'fabsf' instead
    - WARN  |  IDMPhotoBrowser/Classes/IDMPhotoBrowser.m:1256:42: warning: 'setCompletionHandler:' is deprecated: first deprecated in iOS 8.0 - Use completionWithItemsHandler instead. [-Wdeprecated-declarations]
    - NOTE  |  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:19:69: note: property 'completionHandler' is declared deprecated here
    - NOTE  |  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:19:69: note: 'setCompletionHandler:' has been explicitly marked deprecated here
    - NOTE  | [iOS]  IDMPhotoBrowser/Classes/IDMPhotoBrowser.m:431:27: note: use function 'fabs' instead

Pods project available at `/var/folders/d7/_7pl6k7d7nz6k0vhw3d8tnqm0000gn/T/CocoaPods/Lint/Pods/Pods.xcodeproj` for inspection.

我的 pod 规范依赖项是:

s.frameworks = 'UIKit', 'Foundation'
s.dependency 'Haneke'
s.dependency 'DACircularProgress'
s.dependency 'IDMPhotoBrowser'
s.dependency 'AFNetworking'

我不确定如何解决依赖性警告和强制验证。

基于 Meet 提供的 link,我所要做的就是使用 --allow-warnings 选项进行验证。