'Using Objective C library in Swift : Undefined symbol: _OBJC_CLASS_$_PRCertification

So I want to use a private Objective-C library in a Swift Project. I will call that library PRCertification.

I was trying to use one of its methods which goes sth like PRCertification.shared().certificate().

When I run on my iPhone, it keeps giving me an error : Undefined symbol: _OBJC_CLASS_$_PRCertification.

But it's working fine with iOS Simulator.

Why is that? And how do I fix it?

Thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source