ruby - 由于 libswiftCore.dylib 的 2 条路径,无法构建应用程序
问题描述
升级到 Mojave 后,我的 rubymotion (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"
解决方案
它由 Rubymotion 维护者修复。使用更新的 Rubymotion 再次运行它,我收到一条错误消息,解释了该怎么做。
我不得不跑:
sudo cp -r /usr/lib/swift/*.dylib /Applications/Xcode.app/Contents/Frameworks
sudo touch /Applications/Xcode.app/Contents/Frameworks/.swift-5-staged
推荐阅读
- amazon-cloudformation - Cloudformation - ECS 服务。如何在没有堆栈冲突的情况下管理管道部署的映像更新
- c# - 在 .Net Core µService 中捕获异常引发的异常
- c++ - 使用 CMake 构建 C++ 项目时链接 Crypto++ 失败
- ios - iOS Twilio 是否允许在视频流进行时访问 CMSampleBufferRef?
- python - 如何使用 DatetimeIndex 创建一个二进制数据框,该数据框将日期对象作为过滤器的事件声明?
- react-native - 后退按钮更改我的自定义标题在 React Navigation 中的位置
- r - R:水平条形图(简单甘特图)
- go - 在测试二进制文件中禁用竞争检测
- python - 提高语音识别,python
- flutter - 如何知道应用程序何时在 Flutter 中加载?