.podspec error – source_files` pattern did not match any file

The problem is that your podspec is referencing a commit that did not yet have the Classes folder,

i.e. this commit doesn’t have a classes folder yet https://github.com/kevinrandrup/DropDownMenu/tree/09c9b3d515b78550557eabc0a8542f9f6f2623cf

You can fix this issue by referencing the latest commit, i.e. changing your podspec source to:

s.source       = { :git => "https://github.com/kevinrandrup/DropDownMenu.git", :commit => "0d6761feefccff1f7d8b7c7788ceb8e9cd1314ea" }
s.source_files="Classes/*.{h,m}"

Leave a Comment