库未加载:@ rpath / libswiftSwiftOnoneSupport.dylib

时间:2019-10-08 15:30:51

标签: ios swift xcode frameworks

我的项目过去通常可以正常运行,但是现在当运行一段时间后,它突然崩溃。 错误消息:

dyld: Library not loaded: @rpath/libswiftSwiftOnoneSupport.dylib
  Referenced from: /Users/qizijia/Library/Developer/CoreSimulator/Devices/7CDDEA9B-0ADD-4A64-8084-BCFBBDF40483/data/Containers/Bundle/Application/FE1EC391-A6B7-44F7-AEDE-DB643B125DBB/ppp.app/Frameworks/CircleMenu.framework/CircleMenu
  Reason: no suitable image found.  Did find:
    /usr/lib/swift/libswiftSwiftOnoneSupport.dylib: mach-o, but not built for iOS simulator
    /usr/lib/swift/libswiftSwiftOnoneSupport.dylib: mach-o, but not built for iOS simulator

我尝试按照dyld: Library not loaded: @rpath/libswiftSwiftOnoneSupport.dylib的回答进行操作,但这没有帮助。

1 个答案:

答案 0 :(得分:0)

  1. 转到“ libswiftSwiftOnoneSupport”框架目标的构建阶段
  2. 单击右上角的+按钮,然后选择“新建运行脚本阶段”
  3. 添加以下脚本,然后运行项目。
original_stdout_fd = sys.stdout.fileno()
AttributeError: 'FlushingStringIO' object has no attribute 'fileno'