Search code examples
realm

The `vendored_frameworks` pattern did not match any file


While adding Realm for Objective C in Vendored framework in my custom podspec file it gives me an error

- ERROR | [iOS] file patterns: The `vendored_frameworks` pattern did not match any file.

In my podspec file I have entry:

s.vendored_frameworks = "Realm.framework"

Error came when I run command pod spec lint


Solution

  • CocoaPods doesn't respect project settings at all. It just refers to a Podspec file. You put Realm.framework same directory as podspec. If you write s.vendored_frameworks = "Realm.framework", the path will be resolved related to the current directory.