protobuf symbol duplicate #17248
-
I am using protobuf framework and onnxruntime-c framework simultaneously in ios. onnxruntime-c : 1.15.1 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Yes, it is included. |
Beta Was this translation helpful? Give feedback.
-
@snnn Acctually, i have using protobuf already by dependency.
|
Beta Was this translation helpful? Give feedback.
Hi @snnn
i have some news about this issue.
I was able to get through this problem in two ways.
i guess that the released ios framework is built with static framework.
(build script default)
I was able to get through this in two ways.
First, we were able to use the static protobuf library by adding a new target to our app.
In my case it is not suitable because onnxruntime is used by native library.
Another way is to rebuild onnruntime with the dynamic framework and then link to it using 'vendored_framework' in your podspec.
My choice is the second and it solved my problem.
thanks.