zylenv
zylenv

Reputation: 932

Why do cocoapod create a dummy class for every pod?

Just as title described. I do not understand why does it did that?

enter image description here

Upvotes: 2

Views: 1658

Answers (2)

Assuner
Assuner

Reputation: 1

you can use class-dump to get all headers, then get all dependency repo from checking headers whose pre is podsDummy.

Upvotes: 0

orta
orta

Reputation: 4295

You can create a Pod that only exists as a series of categories on Apple's classes, which means that the library you create has no actual objects inside it, which doesn't work at the linker stage of the build process. Adding a dummy file to each Pod means there's a guarantee that each library contains an object.

Upvotes: 6

Related Questions