podspec文件问题

本篇只作为问题记录

问题1:pod lib lint 验证本地podspec文件

错误:pod lin Testing with ''xcodebuild''. ..... xcodebuild: Returned an unsuccessful exit code.
问题原因参考:
https://github.com/CocoaPods/CocoaPods/issues/5854
https://github.com/CocoaPods/CocoaPods/issues/5472
https://stackoverflow.com/questions/36618252/cocoapods-podspec-push-without-build-simulator-architecture
解决方案:
pod spec lint xxxxxx.podspec --skip-import-validation
参考,更多验证参数参考

问题2:pod spec lint 远程验证podspec文件

错误:The 'Pods-App' target has transitive dependencies that include static binaries
解决方案:
在编译或检查时增加--use-libraries
如:pod spec lint xx.podspec --use-libraries
参考

问题3:pod lib lint/repo push不支持i386编译

参考

你可能感兴趣的:(podspec文件问题)