问题描述
我正在开发一个使用第三方框架(OpenCV)的Appcelerator Titanium iOS模块。
到目前为止,太好了。我遇到了一些问题,但是逐渐设法解决了这些问题(在帮助下)。现在,我得到了一个令人烦恼的错误,指出Could not find or use auto-linked library 'swiftCore'
和其他库。该模块编译没有问题,这是我尝试在App中运行该模块时遇到的错误(我什至没有收到有关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....
我已经尝试了3种在SO上找到的东西。
第一个:如this答案中所述,在项目上也创建一个.swift
文件的虚拟Project-Bridging-Header.h
文件。
第二个:创建用户定义的构建设置LD_VERIFY_BITCODE
,其值为NO
,如this答案中所述。
第三,如this答案中所述,将$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)
放在Library Search Paths
中。
这三个选项似乎对很多人都有效,但我仍然遇到这些错误。 提醒一下,该模块构建完美,尝试在该模块上运行该应用程序时出现错误。
请,有人可以帮我吗?我为此苦了很长时间。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)