Date
Jul. 21st, 2024
 
2024年 6月 16日

Post: CocoaPods: Encountered an unknown error (Pod::DSLError) during validation

CocoaPods: Encountered an unknown error (Pod::DSLError) during validation

Published 12:01 Jan 03, 2018.

Created by @ezra. Categorized in #Programming, and tagged as #iOS.

Source format: Markdown

Table of Content

在发布到 CocoaPods 是如果遇到下面的问题:

Validating podspec
 -> UIMessageBar (1.0.0)
    - ERROR | [iOS] unknown: Encountered an unknown error (Pod::DSLError) during validation.

[!] The spec did not pass validation, due to 1 error.

可以尝试修改 .podspec 文件中类似这样的配置:

spec.source_files     = 'UIMessageBar/**/*'
spec.resource_bundles = {'UIMessageBar' => ['UIMessageBar/Resources/**/*']}

手动指明要包含的文件类型:

spec.source_files     = 'UIMessageBar/**/*.{swift}'
spec.resource_bundles = {'UIMessageBar' => ['UIMessageBar/Resources/**/*.{xib,png}']}
Pinned Message
HOTODOGO
I'm looking for a SOFTWARE PROJECT DIRECTOR / SOFTWARE R&D DIRECTOR position in a fresh and dynamic company. I would like to gain the right experience and extend my skills while working in great teams and big projects.
Feel free to contact me.
For more information, please view online résumé or download PDF
本人正在寻求任职 软件项目经理 / 软件技术经理 岗位的机会, 希望加⼊某个新鲜⽽充满活⼒的公司。
如有意向请随时 与我联系
更多信息请 查阅在线简历下载 PDF