Skip to content

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

@biendltb

Description

@biendltb

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions