我正试图为Cocoapods制作Pod。在podspec验证过程中,出现了以下错误:
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
- NOTE | xcodebuild: warning: no rule to process file 'sequencing-file-selector-api-objc/Pod/ResourceBundle.bundle/myfiles.png' of type image.png for architecture i386
- NOTE | xcodebuild: warning: no rule to process file 'sequencing-file-selector-api-objc/Pod/ResourceBundle.bundle/nav_clear_pixel.png' of type image.png for architecture i386
- NOTE | xcodebuild: warning: no rule to process file 'sequencing-file-selector-api-objc/Pod/ResourceBundle.bundle/nav_pixel.png' of type image.png for architecture i386
- NOTE | xcodebuild: warning: no rule to process file 'sequencing-file-selector-api-objc/Pod/ResourceBundle.bundle/samplefiles.png' of type image.png for architecture i386
- NOTE | xcodebuild: warning: no rule to process file 'sequencing-file-selector-api-objc/Pod/ResourceBundle.bundle/myfiles.png' of type image.png for architecture x86_64
- NOTE | xcodebuild: warning: no rule to process file 'sequencing-file-selector-api-objc/Pod/ResourceBundle.bundle/nav_clear_pixel.png' of type image.png for architecture x86_64
- NOTE | xcodebuild: warning: no rule to process file 'sequencing-file-selector-api-objc/Pod/ResourceBundle.bundle/nav_pixel.png' of type image.png for architecture x86_64
- NOTE | xcodebuild: warning: no rule to process file 'sequencing-file-selector-api-objc/Pod/ResourceBundle.bundle/samplefiles.png' of type image.png for architecture x86_64
- NOTE | [iOS] xcodebuild: : error: Not enough arguments provided; where is the input document to operate on?Podspec包含以下设置:
s.resource = 'Pod/ResourceBundle.bundle'
s.resources = ['Pod/ResourceBundle.bundle/*.png']所有图像都在ResourceBundle.bundle文件中
如何处理这样的错误?无法验证podspec。
发布于 2016-03-18 16:55:44
正如我发现的,问题是在创建Resources时,我没有将资源文件指定为实际的CocoaPod (.png、.storyboard和.xib)。
因此,我在吊舱中创建了一个Resources文件夹,并移动了所有png图像、自定义storyboard文件和xib文件。
在podspec文件中,我添加了以下规范:
s.resources = ['Resources/**/*.*']因此,podspec文件得到了成功的验证,并且我能够释放这个吊舱。
https://stackoverflow.com/questions/36083517
复制相似问题