xcode 6 beta 7:A signed resource has been added modified or deleted.

hsafarya picture hsafarya · Sep 3, 2014 · Viewed 7.8k times · Source

When I'm running the application on device aftercleaning, removing derived data, first time it runs without any issues. Second time when I'm trying to run, it say's "A signed resource has been added modified or deleted."

On the simulator app run's without problem.

I think it's because of extensions, I have editing, share and today extensions, when I'm deleting this extensions, then I can run second time without this message.

The problem has been since from xcode 6 beta 5.

Maybe issue related to provisioning profiles and signing ? I has created different provisioning profiles for each extension target.

So my question is, how can I fix this ? How can I run on the device second time without cleaning project?

Answer

Cloud Xu picture Cloud Xu · Sep 26, 2014

It is still not fixed in XCode 6 RTM. But I found an easy walk around. Simply delete the ShareExtension.appex folder under your build. Then rebuild again. You don't need to clean project, so rebuild is quite fast.

A actually alias the command to do the cleaning

rm -rf ~/Library/Developer/Xcode/DerivedData/<your_app>-*/Build/Products/Debug-iphoneos/ShareExtension.appex/