首页 > 解决方案 > 由于 libswiftCore.dylib 的 2 条路径,无法构建应用程序

问题描述

升级到 Mojave 后,我的 ruby​​motion (6.1) 应用程序无法编译。我收到以下错误:

Class _TtCs18__stdlib_AtomicInt is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fffa61010c8) and /Applications/Xcode.app/Contents/Frameworks/libswiftCore.dylib (0x1072be158).
One of the two will be used. Which one is undefined.
Class _TtCs19__EmptyArrayStorage is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fffa60f31e0) and /Applications/Xcode.app/Contents/Frameworks/libswiftCore.dylib (0x1072b0268).
One of the two will be used. Which one is undefined.
...
"This copy of libswiftCore.dylib requires an OS version prior to 10.14.4"

标签: rubyxcoderubymotion

解决方案


它由 Rubymotion 维护者修复。使用更新的 Rubymotion 再次运行它,我收到一条错误消息,解释了该怎么做。

我不得不跑:

sudo cp -r /usr/lib/swift/*.dylib /Applications/Xcode.app/Contents/Frameworks
sudo touch /Applications/Xcode.app/Contents/Frameworks/.swift-5-staged

推荐阅读