How to tell (at runtime) if a library was linked using cocoapods or not?

Viewed 309

I know this probably is impossible, but is there any footprint left by cocoapods that can point out (at runtime) if a library was installed using cocoapods or not?

I am currently able to find out if CocoaPods was used or not by getting the list of classes names and then looking for a class with the PodsDummy_Pods_ prefix. But I have no way of knowing if a given library was or not linked using CocoaPods.

Edit

As clarification: I have access to the library source code, but I have no control over the final project. The library is distributed as a binary (static library), and we would like to know if the users installed it using CocoaPods or not.

3 Answers
Related