首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >没有规则用于处理image.png类型的体系结构i386文件

没有规则用于处理image.png类型的体系结构i386文件
EN

Stack Overflow用户
提问于 2016-03-18 11:45:08
回答 1查看 457关注 0票数 1

我正试图为Cocoapods制作Pod。在podspec验证过程中,出现了以下错误:

代码语言:javascript
复制
- 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包含以下设置:

代码语言:javascript
复制
s.resource = 'Pod/ResourceBundle.bundle'
s.resources = ['Pod/ResourceBundle.bundle/*.png']

所有图像都在ResourceBundle.bundle文件中

如何处理这样的错误?无法验证podspec。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-03-18 16:55:44

正如我发现的,问题是在创建Resources时,我没有将资源文件指定为实际的CocoaPod (.png、.storyboard和.xib)。

因此,我在吊舱中创建了一个Resources文件夹,并移动了所有png图像、自定义storyboard文件和xib文件。

podspec文件中,我添加了以下规范:

代码语言:javascript
复制
s.resources = ['Resources/**/*.*']

因此,podspec文件得到了成功的验证,并且我能够释放这个吊舱。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36083517

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档