相关疑难解决方法(0)

带有Swift Cocoa库的OSX命令行工具,未加载库

尝试运行目标时抛出以下错误:

dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: x/Xcode/DerivedData/x/Build/Products/Debug/PriorityQueue.framework/Versions/A/PriorityQueue
  Reason: image not found
Run Code Online (Sandbox Code Playgroud)

我的目标是用Swift编写的命令行工具(OSX).我正在使用用Swift编写的Cocoa Framework(PriorityQueue).当我EMBEDDED_CONTENT_CONTAINS_SWIFT框架上设置为yes时,目标将运行以下警告:

objc[99144]: Class _TtC10Foundation15NSSimpleCString is implemented in both x/PriorityQueue.framework/Versions/A/Frameworks/libswiftFoundation.dylib and x/MyTargetName. One of the two will be used. Which one is undefined.
objc[99144]: Class _TtC10Foundation16NSConstantString is implemented in both x/PriorityQueue.framework/Versions/A/Frameworks/libswiftFoundation.dylib and x/MyTargetName. One of the two will be used. Which one is undefined.
objc[99144]: Class _TtC10Foundation15NSFastGenerator is implemented in both x/PriorityQueue.framework/Versions/A/Frameworks/libswiftFoundation.dylib and x/MyTargetName. One of the two will be used. Which one …
Run Code Online (Sandbox Code Playgroud)

xcode command-line-interface swift

32
推荐指数
2
解决办法
5873
查看次数

标签 统计

command-line-interface ×1

swift ×1

xcode ×1