Skip to content

swift api: error: no such module 'onnxruntime_extensions_c' #943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
biendltb opened this issue May 3, 2025 · 0 comments
Open

swift api: error: no such module 'onnxruntime_extensions_c' #943

biendltb opened this issue May 3, 2025 · 0 comments

Comments

@biendltb
Copy link

biendltb commented May 3, 2025

Hi,

I'm trying to import and use the onnxruntime-extensions following the example at this test

I imported the package in cocoapods:

s.dependency 'onnxruntime-extensions-c', '0.13.0'

And use it in my swift code:

import onnxruntime_extensions_c

...

try sessionOptions.registerCustomOps(functionPointer: RegisterCustomOps)

However, I got the build error for the import

/Users/xxx/Projects/flutter_onnxruntime/macos/Classes/FlutterOnnxruntimePlugin.swift:10:8: error: no such module 'onnxruntime_extensions_c'
import onnxruntime_extensions_c
       ^
** BUILD FAILED **

How could I solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant