I've import framework in project and create a bridge header since project is in swift.
Now, I want to invoke method getChallengeDeviceId() present in Common.h header file in CommonLibrary framework.
How can this be done?
I've import framework in project and create a bridge header since project is in swift.
Now, I want to invoke method getChallengeDeviceId() present in Common.h header file in CommonLibrary framework.
How can this be done?
Use OC code in Swift project:
1.Creat a file: produceName-Bridging-Header.h
2.Set targets->build settings ->Object-C Bridging Header
to produceName-Bridging-Header.h
in building settings.
3.Import .h file in produceName-Bridging-Header.h
.
For u, #import <CommonLibrary/Common.h>
4.U can use the OC class.
In your case, maybe you should use like this:
let common = Common()//Or any other init method(Maybe a singleton or somthing)
common.getChallengeDeviceId("iPhone5S")
1 Go to targets->build settings ->Object-C Bridging Header