I got a issue while using swift-bridge-header feature to access c code framework(liblinphone). A struct LinphoneCallParams which defined in types.h that can be found in framework header files. And the struct definition is as following
typedef struct _LinphoneCallParams LinphoneCallParams;
When I try to define a parameter
var callPara: LinphoneCallParams?
in swift file, Xcode will show this error notice "Use of undeclared type 'LinphoneCallParams'". (No problem to access the other definition in this file, so the swift-briging-header file is without problem) Search the definition of _LinphoneCallParams, which is located in private.h that is not included in SDK. But the interesting thing is, if I use Object-C code to define this parameter
LinphoneCallParams *callParams = xxxxxxx();
Everything works correctly. I don't want to use Object-C code to implement this project. Any idea why this is happening?