Skip to content
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

iOS 无法引入 framework #952

Closed
wujingcheng7 opened this issue May 31, 2024 · 2 comments
Closed

iOS 无法引入 framework #952

wujingcheng7 opened this issue May 31, 2024 · 2 comments

Comments

@wujingcheng7
Copy link

我使用 github 提供的 demo,顺利地安装 sherpa-onnx.xcframework onnxruntime.xcframework 并且在真机顺利运行了 SherpaOnnxTts 项目。
但是当我尝试将其引入我自己创建的项目时,我直接将 xcframework 拖入 Xcode 项目,将官方 demo 代码完全 copy 到我的项目里,编译器始终报错找不到类,报了上百个。
image
image
image
image
image

@csukuangfj
Copy link
Collaborator

https://k2-fsa.github.io/sherpa/ncnn/ios/for-the-more-curious-swift.html

请看这个。

把 ncnn 改成 onnx, 方法是一样的。


首先你要明白,依赖不仅仅只有这两个 framework.

你还需要设置 bridge 的.


具体的,请按照上面给的文档来

@wujingcheng7
Copy link
Author

wujingcheng7 commented May 31, 2024

https://k2-fsa.github.io/sherpa/ncnn/ios/for-the-more-curious-swift.html

请看这个。

把 ncnn 改成 onnx, 方法是一样的。

首先你要明白,依赖不仅仅只有这两个 framework.

你还需要设置 bridge 的.

具体的,请按照上面给的文档来

好的,感谢大佬。果然有效!感谢👍

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

2 participants