2015-06-17 2 views
0

Я исправил кучу ошибок создания podspec. Вот выход из pod lib lint:ошибка cocoapod 'не прошла проверку'

-> 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. 

Мои зависимости стручок спецификации являются:

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

Я не знаю, как разрешить предупреждения зависимостей и проверки силы.

+1

Проверьте это: https://github.com/CocoaPods/CocoaPods/issues/3154 – Meet

ответ

0

Основываясь на ссылке, предоставленной Meet, все, что мне нужно было сделать, это подтвердить с помощью опции --allow-warnings.

Смежные вопросы