我修复了一堆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'
我不确定如何解决依赖性警告和强制验证。
答案 0 :(得分:0)
根据Meet提供的链接,我所要做的就是使用--allow-warnings
选项进行验证。