【问题标题】:RubyMotion fresh project gives error dlopen(/Applications/Xcode.app/Contents/Developer/../Frameworks/libswiftCore.dylib, 2): image not foundRubyMotion 新项目给出错误 dlopen(/Applications/Xcode.app/Contents/Developer/../Frameworks/libswiftCore.dylib, 2): image not found
【发布时间】:2019-10-26 09:37:41
【问题描述】:

使用 RubyMotion 的现有或新项目会出现以下错误 dlopen(/Applications/Xcode.app/Contents/Developer/../Frameworks/libswiftCore.dylib, 2): image not found 和模拟器打不开

【问题讨论】:

  • 您使用的是什么操作系统、Xcode 和 RM 版本?

标签: rubymotion


【解决方案1】:

系统详情 - Mojave - Xcode 11.1 - Latest public Rubymotion from the website

  • 启动 Xcode 并接受任何条款,让它下载它认为需要启动的任何工具
  • 运行 sudo xcodebuild -license
  • 运行 sudo xcode-select --install && sudo xcode-select --reset 确保你都是最新的(我不知道安装程序是否已经这样做了,但它没有伤害) 须藤动作更新 运动回购

那么对于上述错误: dlopen(/Applications/Xcode.app/Contents/Developer/../Frameworks/libswiftCore.dylib, 2): image not found 或者 objc[98906]: Class __SwiftNativeNSIndexSetBase is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff924d4e98) and /Applications/Xcode.app/Contents/Frameworks/libswiftCore.dylib (0x1058f3f20)

此 libswiftCore.dylib 副本需要 10.14.4 之前的操作系统版本。 跑 sudo cp -r /usr/lib/swift/*.dylib /Applications/Xcode.app/Contents/Frameworks sudo touch /Applications/Xcode.app/Contents/Frameworks/.swift-5-staged

【讨论】:

    猜你喜欢
    • 2016-05-02
    • 1970-01-01
    • 1970-01-01
    • 2022-11-09
    • 2017-08-27
    • 2015-02-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多