Library not loaded: @rpath/libswiftCore.dylib ->添加/usr/lib/swift

1,186 阅读1分钟

@rpath/libswiftCore.dylib

'/private/var/containers/Bundle/Application/5DBF5BEE-FFA9-4E23-B451-E9C7F1DA4D43/xxxxx.app/Frameworks/libswiftCore.dylib' (no such file), 
'/usr/local/lib/libswiftCore.dylib' (no such file), 
'/usr/lib/libswiftCore.dylib' (no such file, not in dyld cache)

解决方法

  • 报错target 的build settings
  • 搜索runpath search paths
  • 添加/usr/lib/swift
  • clean以下
  • 再build
  • OK