dyld: Library not loaded: @rpath/libswiftCore.dylib / Image not found

公司项目的当前版本之前一直使用模拟器开发测试,今天想要上真机,陡然间甩我一个无法安装的问题:(对我报错提示是PromiseKit)

dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /private/var/mobile/Containers/Bundle/Application/10DB2FE8-EF09-4857-B4AC-0DB2E4419D6F/App-Name.app/App-Name           
Reason: image not found        
(lldb)

我的尝试以及检查:

  1. 更新pod源:pod update –verbose –no-repo-update(无效)
  2. Target-> Build Settings -> Runpath Search Paths: 检查是否有@executable_path/Frameworks字段(默认应该是有)

最终解决方案:
删除Xcode中的DerivedData:
/Users/Teresa/Library/Developer/Xcode/DerivedData

你可能感兴趣的:(dyld: Library not loaded: @rpath/libswiftCore.dylib / Image not found)