Closed YUNQIUGUO closed 1 year ago
FWIW, this is possible. Here's an example: swift: https://github.com/microsoft/onnxruntime-extensions/blob/6ea8a8f07f21708cd676d0d28ca7ca5bd717c512/test/ios/OrtExtensionsUsage/OrtExtensionsUsage/OrtSwiftClient.swift#L17 bridging header: https://github.com/microsoft/onnxruntime-extensions/blob/6ea8a8f07f21708cd676d0d28ca7ca5bd717c512/test/ios/OrtExtensionsUsage/OrtExtensionsUsage/OrtExtensionsUsage-Bridging-Header.h#L8
I'm not sure what is required in the SPM setup for onnxruntime_extensions.h to be made available though.
yeah thanks for the links. I was refering to this OrtExtensionsUsage ios app a lot.
but I did come across the option of using bridging-headers in the SPM support. As of my knowledge and internet searching result, SPM does not support bridging headers in the same way that Xcode and traditional Objective-C/Swift projects do.
As title.
Currently testing with extensions dev version (using artifacts generated from a specific build of a branch on ORT Extensions which includes the change for header include path.) pod in the CI pipeline only.
Related pr: https://github.com/microsoft/onnxruntime-extensions/pull/501