Appcelerator Titanium - 无法找到或使用自动链接库 'swiftCore'

Appcelerator Titanium - Could not find or use auto-linked library 'swiftCore'

我正在开发一个使用第 3 方框架 (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,如 答案中所述。

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

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

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

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