Search code examples
iosxcodecocoapodsswift2core-motion

Unable to find Cocoapod MotionKit framework Derived Data


I installed the library with Pod. But I got the following error when I build the app:

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)

This happens after I upgraded the Xcode. How to fix such error?


Solution

  • Xcode > Window > Projects > [project] > Delete

    Delete Derived Data