【问题标题】:Swift+Cocoapods: ld: warning: Could not find or use auto-linked library 'deepspeech'Swift+Cocoapods:ld:警告:找不到或使用自动链接库“deepspeech”
【发布时间】:2020-08-27 23:17:24
【问题描述】:

有谁知道为什么 RN 模块 cocoapod 会在一个晚上工作,然后第二天就停止工作,尽管没有任何变化?我正在为 DeepSpeech 构建一个 React Native 模块:https://github.com/zaptrem/react-native-transcription

其中一部分是使用 s.vendored_frameworks 配置 podspec 以使用预编译的 deepspeech_ios.framework。另一部分是使用 cocoapods-user-defined-build-types 插件使 cocoapods 仅将我的 pod 视为 dynamic_framework。它昨晚还在工作,但今天整个编译都失败了:

ld: warning: Could not find or use auto-linked library 'deepspeech'
Undefined symbols for architecture arm64:
  "_DS_Version", referenced from:
      deepspeech_ios.DeepSpeechVersion() -> Swift.String in deepspeech_ios(DeepSpeech.o)
(Many, many more symbols with a similar issue from DeepSpeech)

我尝试回滚到我确信它有效的提交,但我得到了相同的结果。

我还发现该项目不能永远加载。

【问题讨论】:

    标签: swift react-native cocoapods


    【解决方案1】:

    删除并重新制作 Xcode 项目文件和 deepspeech_ios.framework 解决了该问题。可能是 DeepSpeech 版本不匹配?使用此库时,也经常需要清除构建文件夹。

    【讨论】:

      猜你喜欢
      • 2020-02-23
      • 1970-01-01
      • 2017-05-06
      • 2020-09-11
      • 1970-01-01
      • 2019-11-27
      • 2018-05-18
      • 1970-01-01
      • 2017-11-23
      相关资源
      最近更新 更多