macOS Command Line Tool with Swift Cocoa Framework: Library not loaded

后端 未结 3 869
长发绾君心
长发绾君心 2020-12-28 13:05

The following error is thrown when trying to run my target:

dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: x/Xcode/DerivedData/x/Buil         


        
3条回答
  •  误落风尘
    2020-12-28 13:46

    The above worked for me. the two user build flags and then setting the following in runtime search paths.

    LD_RUNPATH_SEARCH_PATHS = $(TOOLCHAIN_DIR)/usr/lib/swift/macosx @executable_path
    

提交回复
热议问题