Xcode 6.3.1 “A signed resource has been added, modified, or deleted” issue

杀马特。学长 韩版系。学妹 提交于 2020-06-26 04:33:45

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/29878377/xcode-6-3-1-a-signed-resource-has-been-added-modified-or-deleted-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!