Xcode在编译时突然发现错误

时间:2018-08-14 12:18:23

标签: ios xcode swift4

我不明白,为什么Xcode开始失败。它工作正常,但现在不行。 为什么?有什么想法吗?

dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /var/containers/Bundle/Application/5F0F3220-FB4F-4AF1-BC9E-6EF464E24448/signum.app/signum
  Reason: no suitable image found.  Did find:
/private/var/containers/Bundle/Application/5F0F3220-FB4F-4AF1-BC9E-6EF464E24448/signum.app/Frameworks/libswiftCore.dylib: code signature invalid for '/private/var/containers/Bundle/Application/5F0F3220-FB4F-4AF1-BC9E-6EF464E24448/signum.app/Frameworks/libswiftCore.dylib'

(lldb) 

fail1 image

fail2 image

1 个答案:

答案 0 :(得分:-1)

只需清理项目:

shift+cmd+k