有时候你变更工程文件,导致​​Build input file cannot be found​​。如你的工程原来是支持Pods的,你删除了Pods,那么有可能遇到这个文件。我在做SDK开发时就遇到这个问题。

error: Build input file cannot be found: '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/ELockSDK-eooujpkadmeycechvooxfnkyfdoo/Build/Products/Debug-iphoneos/libPods-ELockSDK.a'

解决方案切换到编译目录,直接它的文件及文件删除,再运行就可以了。

w1:ELockSDK jiaguoshang$ cd /Users/jiaguoshang/Library/Developer/Xcode/DerivedData/ELockSDK-eooujpkadmeycechvooxfnkyfdoo/Build/Products
w1:Products jiaguoshang$ open ./

Podfile,Podfile.lock,Pods,project.xcworkspace [CP] Check Pods Mainfest.lock和 [CP] Copy Pods Resources