3

My xcode version is 6.3.1, my app is a swift project with a WatchKit target.

Xcode showed this message "A signed resource has been added, modified, or deleted" when I ran it on my iPhone 6.

It works fine on iPhone 5s, iPad and simulator, so I guess this is not a certificate issue, right?

I tried deleting the "derived data" suggested in the question xcode 6 beta 7:A signed resource has been added modified or deleted.

After I delete the "derived data", the first time I run, it stopped automatically after "build succeeded"(the app didn't install to my iPhone), when I ran it again, the message showed again.

I also tried restart Xcode, Macbook, iPhone 6, still the same.

Keoros
  • 1,337
  • 2
  • 13
  • 23
  • I have the same problem, my app is a OC project with a WatchKit target. – guoleii Apr 26 '15 at 16:37
  • I have this problem for projects with cocoapods. Do you guys use that? – honcheng Apr 27 '15 at 09:04
  • @honcheng yes, also in the target of WatchKit extension. I found this issue https://github.com/CocoaPods/CocoaPods/issues/790 , but didn't find a perfect solution. – guoleii Apr 27 '15 at 09:52

1 Answers1

2

If you use coaoapods, this commit of cocoapods can solve part of this problem

https://github.com/CocoaPods/CocoaPods/pull/3390

If this link is invalid

Edit $COCOAPODS_DIR/lib/cocoapods/generator/embed_frameworks_script.rb

66 - echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers/\" --filter \"- PrivateHeaders/\" ${source} ${destination}"
67 - rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers/" --filter "- PrivateHeaders/" "${source}" "${destination}"
66 + echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers/\" --filter \"- PrivateHeaders/\" --filter \"- Modules/\" ${source} ${destination}"
67 + rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers/" --filter "- PrivateHeaders/" --filter "- Modules/" "${source}" "${destination}"

// line number may change.

But still need to delete some data (include ModuleCache and YourProject-xxxx) in

~/Library/Developer/Xcode/DerivedData

every-time before you compile your app.

Community
  • 1
  • 1
mgbaozi
  • 136
  • 4
  • it works, thanks, @mgbaozi ! for the every-time deletion, you can add it to pre-action of build stage in scheme. – guoleii Apr 27 '15 at 13:08