Date
Dec. 31st, 2024
 
2024年 12月 1日

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
The Founder and CEO of Infeca Technology.
Developer, Designer, Blogger.
Big fan of Apple, Love of colour.
Feel free to contact me.
反曲点科技创始人和首席执行官。
开发、设计与写作皆为所长。
热爱苹果、钟情色彩。
随时恭候 垂询