无法找到 Cocoapod MotionKit 框架派生数据

Unable to find Cocoapod MotionKit framework Derived Data

我用 Pod 安装了库。但是当我构建应用程序时出现以下错误:

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: 
can't open file: \
    /Users/taiyuanz/Library/Developer \
    /Xcode/DerivedData/RollingBall-gbmnblxxirswheemtfgncxsqywkj/Build/\
    Products/Debug-iphoneos/Ballman.app/Frameworks/MotionKit 
      (No such file or directory)

这发生在我升级 Xcode 之后。如何修复此类错误?

Xcode > Window > 项目 > [项目] > 删除