App installation failed

最近用 XCode 真机调试的时候出现:

A signed resource has been added, modified, or deleted.

没法安装应用到手机上,解决办法是直接删除项目 DerivedData 下的 .app 和 .appex :

rm -rf ~/Library/Developer/Xcode/DerivedData/AppName-*/Build/Products/Debug-iphoneos/*.app
rm -rf ~/Library/Developer/Xcode/DerivedData/AppName-*/Build/Products/Debug-iphoneos/*.appex

AppName 为项目名称。

Written on 2015-12-12