CocoaPods上传问题记录

问题1:运行--verbose或者-v command not found

  • 解决:pod lib lint --verbose,均为命令之后加--verbose或者其他

问题2:报错[-Werror,-Wnon-modular-include-in-framework-module]

详细报错如下:
-ERROR | xcodebuild: /Users/luoyuan/Library/Developer/Xcode/DerivedData/App-cbpblqaxfirmtlehmeaycktsijcb/Build/Products/Release-iphonesimulator/MOFSPickerManager/MOFSPickerManager.framework/Headers/GDataXMLNode.h:38:9: error: include of non-modular header inside framework module 'MOFSPickerManager.GDataXMLNode': '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk/usr/include/libxml2/libxml/tree.h' [-Werror,-Wnon-modular-include-in-framework-module]

  • 解决:命令后边加--use-libraries
    例如:pod trunk push --use-libraries

问题3:包含arc和mrc问题

  • 解决:

s.requires_arc = false
s.requires_arc = ["MOFSPickerManagerDemo/MOFSPickerManager/*/.{h,m}"]

你可能感兴趣的:(CocoaPods上传问题记录)