【问题标题】:Appcelerator Titanium - Could not find or use auto-linked library 'swiftCore'Appcelerator Titanium - 无法找到或使用自动链接库“swiftCore”
【发布时间】:2020-08-28 15:09:28
【问题描述】:

我正在开发一个使用 3rd 方框架 (OpenCV) 的 Appcelerator Titanium iOS 模块。

到目前为止,一切都很好。我遇到了一些问题,但逐渐设法解决了(在帮助下)。现在,我收到了这个恼人的错误,指出 Could not find or use auto-linked library 'swiftCore' 和其他库。模块编译没有问题,当我尝试在应用程序中运行模块时出现错误(我什至没有在 XCode 上收到警告,'这都是好人')。

错误:

[TRACE] ld: warning: Could not find or use auto-linked library 'swiftCore'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'    
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftos'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftFoundation'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftsimd'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftMetal'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftDarwin'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftObjectiveC'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftCompatibility50'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftDispatch'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftAVFoundation'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftCoreMedia'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftAccelerate'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftCompatibilityDynamicReplacements'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftCoreAudio'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftUIKit'
[TRACE] ld: warning: Could not find or use auto-linked library 'swiftCoreMIDI'
[TRACE] Undefined symbols for architecture x86_64: // and here a lot of trace log....

我已经尝试了我在 SO 上找到的 3 件事。

第一个:在项目上创建一个虚拟的.swift 文件以及一个Project-Bridging-Header.h 文件,如this 答案中所述。

第二个:创建一个用户定义的构建设置LD_VERIFY_BITCODE,其值为NO,如this答案中所述。

第三个:将$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)放入Library Search Paths中,如this答案所述。

这三个选项似乎对很多人都有效,但我仍然遇到这些错误。 提醒一下,该模块构建完美,我在尝试使用该模块运行应用程序时遇到错误。

请问,有人可以帮我吗?我为此苦苦挣扎了很长时间。

【问题讨论】:

    标签: swift xcode titanium appcelerator


    【解决方案1】:

    对于我的具体情况,解决问题的方法(我必须感谢帮助我解决这个问题的 TiSlack 团队/用户)是安装更新的 Titanium Mobile SDK (9.2.0)。错误消失了,应用程序现在可以运行了!

    【讨论】:

      猜你喜欢
      • 2020-02-23
      • 2019-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-16
      • 2011-11-16
      相关资源
      最近更新 更多